X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Fx11%2Ffg_window_x11.c;h=71814ac5a3facc4f7baaf72382a4c80e331103c7;hb=d3740231230fad29ebda8d1a366d51bbb80536da;hp=b6943d3a3de8dbc8ce41357a73be797c287890b3;hpb=99d53f15a4216240088132f6af9cb194b519b1cc;p=freeglut diff --git a/src/x11/fg_window_x11.c b/src/x11/fg_window_x11.c index b6943d3..71814ac 100644 --- a/src/x11/fg_window_x11.c +++ b/src/x11/fg_window_x11.c @@ -42,10 +42,10 @@ static int fghResizeFullscrToggle(void) { XWindowAttributes attributes; + SFG_Window *win = fgStructure.CurrentWindow; if(glutGet(GLUT_FULL_SCREEN)) { /* restore original window size */ - SFG_Window *win = fgStructure.CurrentWindow; fgStructure.CurrentWindow->State.WorkMask = GLUT_SIZE_WORK; fgStructure.CurrentWindow->State.DesiredWidth = win->State.pWState.OldWidth; fgStructure.CurrentWindow->State.DesiredHeight = win->State.pWState.OldHeight;