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: https://svn.code.sf.net/p/freeglut/code/trunk@927 7f0cb862-5218-0410-a997-914c9d46530a
This commit is contained in:
fayjf 2011-09-04 03:35:29 +00:00
parent 679e603ffc
commit 36bdaa9a43

View File

@ -381,11 +381,11 @@ struct tagSFG_Display
int DisplayModeClock; /* The display mode's refresh rate */ int DisplayModeClock; /* The display mode's refresh rate */
int DisplayViewPortX; /* saved X location of the viewport */ int DisplayViewPortX; /* saved X location of the viewport */
int DisplayViewPortY; /* saved Y 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 DisplayPointerX; /* saved X location of the pointer */
int DisplayPointerY; /* saved Y location of the pointer */ int DisplayPointerY; /* saved Y location of the pointer */
#endif /* HAVE_X11_EXTENSIONS_XF86VMODE_H */
#elif TARGET_HOST_MS_WINDOWS #elif TARGET_HOST_MS_WINDOWS
HINSTANCE Instance; /* The application's instance */ HINSTANCE Instance; /* The application's instance */
DEVMODE DisplayMode; /* Desktop's display settings */ DEVMODE DisplayMode; /* Desktop's display settings */