extern GLvoid fgPlatformGetGameModeVMaxExtent( SFG_Window* window, int* x, int* y );
+extern void fghPlatformGetCursorPos(SFG_XYUse *mouse_pos);
/* -- PRIVATE FUNCTIONS ---------------------------------------------------- */
if (fgState.MenuStatusCallback)
{
/* Get cursor position on screen and convert to relative to parent_window's client area */
- POINT mouse_pos;
- GetCursorPos(&mouse_pos);
- mouse_pos.x -= glutGet( GLUT_WINDOW_X );
- mouse_pos.y -= glutGet( GLUT_WINDOW_Y );
+ SFG_XYUse mouse_pos;
+ fghPlatformGetCursorPos(&mouse_pos);
+
+ mouse_pos.X -= glutGet( GLUT_WINDOW_X );
+ mouse_pos.Y -= glutGet( GLUT_WINDOW_Y );
- fgState.MenuStatusCallback(GLUT_MENU_NOT_IN_USE, mouse_pos.x, mouse_pos.y);
+ fgState.MenuStatusCallback(GLUT_MENU_NOT_IN_USE, mouse_pos.X, mouse_pos.Y);
}
}
}