{ XC_bottom_left_corner, None } /* GLUT_CURSOR_BOTTOM_LEFT_CORNER */\r
};\r
\r
-static void fgPlatformSetCursor ( SFG_Window *window, int cursorID )\r
+void fgPlatformSetCursor ( SFG_Window *window, int cursorID )\r
{\r
Cursor cursor;\r
/*\r
}\r
\r
\r
-static void fgPlatformWarpPointer ( int x, int y )\r
+void fgPlatformWarpPointer ( int x, int y )\r
{\r
XWarpPointer(\r
fgDisplay.Display,\r
}\r
\r
\r
-static GLUTproc fgPlatformGlutGetProcAddress( const char* procName )\r
+GLUTproc fgPlatformGlutGetProcAddress( const char* procName )\r
{\r
return NULL;\r
}\r
* Remembers the current visual settings, so that\r
* we can change them and restore later...\r
*/\r
-static void fgPlatformRememberState( void )\r
+void fgPlatformRememberState( void )\r
{\r
int event_base, error_base;\r
\r
/*\r
* Restores the previously remembered visual settings\r
*/\r
-static void fgPlatformRestoreState( void )\r
+void fgPlatformRestoreState( void )\r
{\r
/* Restore the remembered pointer position: */\r
XWarpPointer(\r
/*\r
* Changes the current display mode to match user's settings\r
*/\r
-static GLboolean fgPlatformChangeDisplayMode( GLboolean haveToTest )\r
+GLboolean fgPlatformChangeDisplayMode( GLboolean haveToTest )\r
{\r
GLboolean success = GL_FALSE;\r
/* first try to use XRandR, then fallback to XF86VidMode */\r
/*\r
* A call to this function should initialize all the display stuff...\r
*/\r
-static void fgPlatformInitialize( const char* displayName )\r
+void fgPlatformInitialize( const char* displayName )\r
{\r
fgDisplay.Display = XOpenDisplay( displayName );\r
\r
\r
\r
#if TARGET_HOST_POSIX_X11\r
-static void fgPlatformDeinitialiseInputDevices ( void )\r
+void fgPlatformDeinitialiseInputDevices ( void )\r
{\r
fghCloseInputDevices ();\r
\r
}\r
\r
\r
-static void fgPlatformCloseDisplay ( void )\r
+void fgPlatformCloseDisplay ( void )\r
{\r
/*\r
* Make sure all X-client data we have created will be destroyed on\r
* Try initializing the input device(s)\r
*/\r
#if TARGET_HOST_POSIX_X11\r
-static void fgPlatformRegisterDialDevice ( const char *dial_device )\r
+void fgPlatformRegisterDialDevice ( const char *dial_device )\r
{\r
}\r
#endif\r
* match the new window size.\r
*/\r
#if TARGET_HOST_POSIX_X11\r
-static void fgPlatformReshapeWindow ( SFG_Window *window, int width, int height )\r
+void fgPlatformReshapeWindow ( SFG_Window *window, int width, int height )\r
{\r
XResizeWindow( fgDisplay.Display, window->Window.Handle,\r
width, height );\r
* A static helper function to execute display callback for a window\r
*/\r
#if TARGET_HOST_POSIX_X11\r
-static void fgPlatformDisplayWindow ( SFG_Window *window )\r
+void fgPlatformDisplayWindow ( SFG_Window *window )\r
{\r
fghRedrawWindow ( window ) ;\r
}\r
*/\r
\r
#if TARGET_HOST_POSIX_X11\r
-static void fgPlatformSleepForEvents( long msec )\r
+void fgPlatformSleepForEvents( long msec )\r
{\r
/*\r
* Possibly due to aggressive use of XFlush() and friends,\r
}\r
\r
\r
-static void fgPlatformMainLoopPreliminaryWork ( void )\r
+void fgPlatformMainLoopPreliminaryWork ( void )\r
{\r
}\r
#endif\r
* Private function to get the virtual maximum screen extent\r
*/\r
#if TARGET_HOST_POSIX_X11\r
-static GLvoid fgPlatformGetGameModeVMaxExtent( SFG_Window* window, int* x, int* y )\r
+GLvoid fgPlatformGetGameModeVMaxExtent( SFG_Window* window, int* x, int* y )\r
{\r
int wx, wy;\r
Window w;\r
return returnValue;\r
}\r
\r
-static int fgPlatformGlutGet ( GLenum eWhat )\r
+int fgPlatformGlutGet ( GLenum eWhat )\r
{\r
int nsamples = 0;\r
\r
}\r
\r
\r
-static int fgPlatformGlutDeviceGet ( GLenum eWhat )\r
+int fgPlatformGlutDeviceGet ( GLenum eWhat )\r
{\r
switch( eWhat )\r
{\r