-extern void fghSetCursor ( SFG_Window *window, int cursorID );\r
-extern void fghWarpPointer ( int x, int y );\r
+extern void fgPlatformSetCursor ( SFG_Window *window, int cursorID );\r
+extern void fgPlatformWarpPointer ( int x, int y );\r
\r
#if TARGET_HOST_POSIX_X11 || TARGET_HOST_MAC_OSX || TARGET_HOST_SOLARIS\r
#include <X11/cursorfont.h>\r
\r
#if TARGET_HOST_POSIX_X11 || TARGET_HOST_MAC_OSX || TARGET_HOST_SOLARIS\r
#include <X11/cursorfont.h>\r
Pixmap cursorNonePixmap;\r
memset( cursorNoneBits, 0, sizeof( cursorNoneBits ) );\r
memset( &dontCare, 0, sizeof( dontCare ) );\r
Pixmap cursorNonePixmap;\r
memset( cursorNoneBits, 0, sizeof( cursorNoneBits ) );\r
memset( &dontCare, 0, sizeof( dontCare ) );\r
- cursorNonePixmap = XCreateBitmapFromData ( fgDisplay.Display,\r
- fgDisplay.RootWindow,\r
+ cursorNonePixmap = XCreateBitmapFromData ( fgDisplay.pDisplay.Display,\r
+ fgDisplay.pDisplay.RootWindow,\r
cursorNoneBits, 16, 16 );\r
if( cursorNonePixmap != None ) {\r
cursorNoneBits, 16, 16 );\r
if( cursorNonePixmap != None ) {\r
cursorNonePixmap, cursorNonePixmap,\r
&dontCare, &dontCare, 0, 0 );\r
cursorNonePixmap, cursorNonePixmap,\r
&dontCare, &dontCare, 0, 0 );\r
None,\r
fgStructure.CurrentWindow->Window.Handle,\r
0, 0, 0, 0,\r
x, y\r
);\r
/* Make the warp visible immediately. */\r
None,\r
fgStructure.CurrentWindow->Window.Handle,\r
0, 0, 0, 0,\r
x, y\r
);\r
/* Make the warp visible immediately. */\r
/* -- INTERNAL FUNCTIONS ---------------------------------------------------- */\r
void fgSetCursor ( SFG_Window *window, int cursorID )\r
{\r
/* -- INTERNAL FUNCTIONS ---------------------------------------------------- */\r
void fgSetCursor ( SFG_Window *window, int cursorID )\r
{\r
FREEGLUT_EXIT_IF_NOT_INITIALISED ( "glutSetCursor" );\r
FREEGLUT_EXIT_IF_NO_WINDOW ( "glutSetCursor" );\r
\r
FREEGLUT_EXIT_IF_NOT_INITIALISED ( "glutSetCursor" );\r
FREEGLUT_EXIT_IF_NO_WINDOW ( "glutSetCursor" );\r
\r
FREEGLUT_EXIT_IF_NOT_INITIALISED ( "glutWarpPointer" );\r
FREEGLUT_EXIT_IF_NO_WINDOW ( "glutWarpPointer" );\r
\r
FREEGLUT_EXIT_IF_NOT_INITIALISED ( "glutWarpPointer" );\r
FREEGLUT_EXIT_IF_NO_WINDOW ( "glutWarpPointer" );\r
\r