X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Ffreeglut_internal.h;h=456415757ff4afccccae310d9b5df53fb68c3683;hb=9b943faa4f374b5a37b1bf6d544f826078cd361b;hp=203ece1e51b33909104606c2a4d0368ee349c9ad;hpb=3f68d4de19f676bd88600c0c6d281c6c0b6f10b0;p=freeglut diff --git a/src/freeglut_internal.h b/src/freeglut_internal.h index 203ece1..4564157 100644 --- a/src/freeglut_internal.h +++ b/src/freeglut_internal.h @@ -219,6 +219,7 @@ struct tagSFG_State GLboolean TryDirectContext; /* What about giving a try to? */ GLboolean ForceIconic; /* All new top windows are iconified */ + GLboolean UseCurrentContext; /* New windows use current window's rendering context */ GLboolean GLDebugSwitch; /* OpenGL state debugging switch */ GLboolean XSyncSwitch; /* X11 sync protocol switch */ @@ -260,6 +261,11 @@ struct tagSFG_Display Atom DeleteWindow; /* The window deletion atom */ #ifdef X_XF86VidModeGetModeLine + /* + * XF86VidMode may be compilable even if it fails at runtime. Therefore, + * the validity of the VidMode has to be tracked + */ + int DisplayModeValid; /* Flag that indicates runtime status*/ XF86VidModeModeLine DisplayMode; /* Current screen's display settings */ int DisplayModeClock; /* The display mode's refresh rate */ #endif