static float menu_pen_hback [4] = {1.0f, 1.0f, 1.0f, 1.0f};\r
#endif\r
\r
+\r
+extern GLvoid fgPlatformGetGameModeVMaxExtent( SFG_Window* window, int* x, int* y );\r
+\r
/* -- PRIVATE FUNCTIONS ---------------------------------------------------- */\r
\r
/*\r
/*\r
* Private function to get the virtual maximum screen extent\r
*/\r
-static GLvoid fghGetVMaxExtent( SFG_Window* window, int* x, int* y )\r
-{\r
- if( fgStructure.GameModeWindow )\r
- {\r
#if TARGET_HOST_POSIX_X11\r
- int wx, wy;\r
- Window w;\r
+GLvoid fgPlatformGetGameModeVMaxExtent( SFG_Window* window, int* x, int* y )\r
+{\r
+ int wx, wy;\r
+ Window w;\r
\r
- XTranslateCoordinates(\r
- fgDisplay.Display,\r
- window->Window.Handle,\r
- fgDisplay.RootWindow,\r
- 0, 0, &wx, &wy, &w);\r
+ XTranslateCoordinates(\r
+ fgDisplay.pDisplay.Display,\r
+ window->Window.Handle,\r
+ fgDisplay.pDisplay.RootWindow,\r
+ 0, 0, &wx, &wy, &w);\r
\r
- *x = fgState.GameModeSize.X + wx;\r
- *y = fgState.GameModeSize.Y + wy;\r
-#else\r
- *x = glutGet ( GLUT_SCREEN_WIDTH );\r
- *y = glutGet ( GLUT_SCREEN_HEIGHT );\r
+ *x = fgState.GameModeSize.X + wx;\r
+ *y = fgState.GameModeSize.Y + wy;\r
+}\r
#endif\r
- }\r
+\r
+\r
+static GLvoid fghGetVMaxExtent( SFG_Window* window, int* x, int* y )\r
+{\r
+ if( fgStructure.GameModeWindow )\r
+ fgPlatformGetGameModeVMaxExtent ( window, x, y );\r
else\r
{\r
*x = fgDisplay.ScreenWidth;\r