X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Ffreeglut_gamemode.c;h=9df2835bb7bd4e13ffabc3f86801a101b7ec9f12;hb=bf9b5b800e3b4f99198a978800c234b6fb5c9215;hp=490d2f641186cdfc48b5b92ebf70c1deec8e5276;hpb=72e831197a5b7494d02be60bc905533c79abab20;p=freeglut diff --git a/src/freeglut_gamemode.c b/src/freeglut_gamemode.c index 490d2f6..9df2835 100644 --- a/src/freeglut_gamemode.c +++ b/src/freeglut_gamemode.c @@ -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) { @@ -497,7 +498,7 @@ int FGAPIENTRY glutEnterGameMode( void ) * (XSetInputFocus) is called with a not yet viewable window, it will exit * the application which we have to aviod, so wait until it's viewable: */ - while (GrabSuccess =! XGrabPointer( + while (GrabSuccess != XGrabPointer( fgDisplay.Display, fgStructure.GameMode->Window.Handle, TRUE, ButtonPressMask|ButtonReleaseMask|ButtonMotionMask |PointerMotionMask,