Moving platform-specific fields in "SFG_Display" into a substructure
[freeglut] / src / Common / freeglut_menu.c
index 45c07c4..4ea31aa 100644 (file)
@@ -149,9 +149,9 @@ GLvoid fgPlatformGetGameModeVMaxExtent( SFG_Window* window, int* x, int* y )
     Window w;\r
 \r
     XTranslateCoordinates(\r
-        fgDisplay.Display,\r
+        fgDisplay.pDisplay.Display,\r
         window->Window.Handle,\r
-        fgDisplay.RootWindow,\r
+        fgDisplay.pDisplay.RootWindow,\r
         0, 0, &wx, &wy, &w);\r
 \r
     *x = fgState.GameModeSize.X + wx;\r