From d3740231230fad29ebda8d1a366d51bbb80536da Mon Sep 17 00:00:00 2001 From: Diederick Niehorster Date: Thu, 4 Apr 2013 02:08:55 +0000 Subject: [PATCH] variable declaration in wrong place git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1578 7f0cb862-5218-0410-a997-914c9d46530a --- src/x11/fg_window_x11.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 1.7.10.4