variable declaration in wrong place
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@1578 7f0cb862-5218-0410-a997-914c9d46530a
This commit is contained in:
parent
0685ee4d0d
commit
9495df62ee
@ -42,10 +42,10 @@
|
|||||||
static int fghResizeFullscrToggle(void)
|
static int fghResizeFullscrToggle(void)
|
||||||
{
|
{
|
||||||
XWindowAttributes attributes;
|
XWindowAttributes attributes;
|
||||||
|
SFG_Window *win = fgStructure.CurrentWindow;
|
||||||
|
|
||||||
if(glutGet(GLUT_FULL_SCREEN)) {
|
if(glutGet(GLUT_FULL_SCREEN)) {
|
||||||
/* restore original window size */
|
/* restore original window size */
|
||||||
SFG_Window *win = fgStructure.CurrentWindow;
|
|
||||||
fgStructure.CurrentWindow->State.WorkMask = GLUT_SIZE_WORK;
|
fgStructure.CurrentWindow->State.WorkMask = GLUT_SIZE_WORK;
|
||||||
fgStructure.CurrentWindow->State.DesiredWidth = win->State.pWState.OldWidth;
|
fgStructure.CurrentWindow->State.DesiredWidth = win->State.pWState.OldWidth;
|
||||||
fgStructure.CurrentWindow->State.DesiredHeight = win->State.pWState.OldHeight;
|
fgStructure.CurrentWindow->State.DesiredHeight = win->State.pWState.OldHeight;
|
||||||
|
Reference in New Issue
Block a user