#include "../fg_internal.h"
+
GLvoid fgPlatformGetGameModeVMaxExtent( SFG_Window* window, int* x, int* y )
{
*x = glutGet ( GLUT_SCREEN_WIDTH );
*y = glutGet ( GLUT_SCREEN_HEIGHT );
}
+void fgPlatformCheckMenuDeactivate()
+{
+ /* User/system switched application focus.
+ * If we have an open menu, close it.
+ */
+ SFG_Menu* menu = NULL;
+
+ if ( fgStructure.Menus.First )
+ menu = fgGetActiveMenu();
+
+ if ( menu )
+ fgDeactivateMenu(menu->ParentWindow);
+};
+
/* -- PLATFORM-SPECIFIC INTERFACE FUNCTION -------------------------------------------------- */