From b0e5b06bca36a249ecba1716e73ef126075a1e04 Mon Sep 17 00:00:00 2001 From: "John F. Fay" Date: Sun, 4 Sep 2011 03:35:29 +0000 Subject: [PATCH] Fixing bug 3292122 from Nigel Stewart (thanks, Nigel) so that "freeglut" will build on Ubuntu, per e-mail from Diederick Niehorster vintage 6/8/2011 at 3:07 AM. There was a problem with variables being declared only with an X extension but being used for all of X. git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@927 7f0cb862-5218-0410-a997-914c9d46530a --- src/freeglut_internal.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/freeglut_internal.h b/src/freeglut_internal.h index 9bd0959..2a8d89a 100644 --- a/src/freeglut_internal.h +++ b/src/freeglut_internal.h @@ -381,11 +381,11 @@ struct tagSFG_Display int DisplayModeClock; /* The display mode's refresh rate */ int DisplayViewPortX; /* saved X location of the viewport */ int DisplayViewPortY; /* saved Y location of the viewport */ +#endif /* HAVE_X11_EXTENSIONS_XF86VMODE_H */ + int DisplayPointerX; /* saved X location of the pointer */ int DisplayPointerY; /* saved Y location of the pointer */ -#endif /* HAVE_X11_EXTENSIONS_XF86VMODE_H */ - #elif TARGET_HOST_MS_WINDOWS HINSTANCE Instance; /* The application's instance */ DEVMODE DisplayMode; /* Desktop's display settings */ -- 1.7.10.4