*/
void fghRestoreState( void )
{
+#if TARGET_HOST_UNIX_X11
+
+# ifdef X_XF86VidModeGetAllModeLines
/*
* Restore the remembered pointer position:
*/
fgDisplay.DisplayPointerX, fgDisplay.DisplayPointerY
);
-#if TARGET_HOST_UNIX_X11
-
/*
* This highly depends on the XFree86 extensions, not approved as X Consortium standards
*/
-# ifdef X_XF86VidModeGetAllModeLines
if (fgDisplay.DisplayModeValid)
{
* (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,