Moved #ifdef for non XFree86 X11 compile.
authorChristopher John Purnell <cjp@lost.org.uk>
Wed, 3 Sep 2003 01:56:04 +0000 (01:56 +0000)
committerChristopher John Purnell <cjp@lost.org.uk>
Wed, 3 Sep 2003 01:56:04 +0000 (01:56 +0000)
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@176 7f0cb862-5218-0410-a997-914c9d46530a

src/freeglut_gamemode.c

index 29a2947..9df2835 100644 (file)
@@ -132,6 +132,8 @@ void fghRememberState( void )
 void fghRestoreState( void )
 {
 #if TARGET_HOST_UNIX_X11
+
+#   ifdef X_XF86VidModeGetAllModeLines
     /*
      * Restore the remembered pointer position:
      */
@@ -143,7 +145,6 @@ void fghRestoreState( void )
     /*
      * This highly depends on the XFree86 extensions, not approved as X Consortium standards
      */
-#   ifdef X_XF86VidModeGetAllModeLines
 
     if (fgDisplay.DisplayModeValid)
     {