Moving all the X11-specific "fgDisplay" structure fields into their substructure...
[freeglut] / src / Common / freeglut_gamemode.c
index d3df2bc..f69595c 100644 (file)
@@ -80,7 +80,7 @@ static int xrandr_resize(int xsz, int ysz, int rate, int just_checking)
             XRRFreeScreenConfigInfo(xrr_config);\r
         }\r
 \r
-        if(!(xrr_config = XRRGetScreenInfo(fgDisplay.pDisplay.Display, fgDisplay.RootWindow))) {\r
+        if(!(xrr_config = XRRGetScreenInfo(fgDisplay.pDisplay.Display, fgDisplay.pDisplay.RootWindow))) {\r
             fgWarning("XRRGetScreenInfo failed");\r
             break;\r
         }\r
@@ -622,7 +622,7 @@ int FGAPIENTRY glutEnterGameMode( void )
         Window child;\r
 \r
         /* Change to viewport to the window topleft edge: */\r
-        if( !XF86VidModeSetViewPort( fgDisplay.pDisplay.Display, fgDisplay.Screen, 0, 0 ) )\r
+        if( !XF86VidModeSetViewPort( fgDisplay.pDisplay.Display, fgDisplay.pDisplay.Screen, 0, 0 ) )\r
             fgWarning( "XF86VidModeSetViewPort failed" );\r
 \r
         /*\r