Moving the X11-specific code from "freeglut_input_devices.c" into its own file (thank...
[freeglut] / src / Common / freeglut_window.c
index cde6407..1052c25 100644 (file)
@@ -449,8 +449,8 @@ static int fghResizeFullscrToggle(void)
         /* restore original window size */\r
         SFG_Window *win = fgStructure.CurrentWindow;\r
         fgStructure.CurrentWindow->State.NeedToResize = GL_TRUE;\r
-        fgStructure.CurrentWindow->State.Width  = win->State.OldWidth;\r
-        fgStructure.CurrentWindow->State.Height = win->State.OldHeight;\r
+        fgStructure.CurrentWindow->State.Width  = win->State.pWState.OldWidth;\r
+        fgStructure.CurrentWindow->State.Height = win->State.pWState.OldHeight;\r
 \r
     } else {\r
         /* resize the window to cover the entire screen */\r