static int fghCheckFullScreen(void)
{
#if TARGET_HOST_POSIX_X11
-
- int result;
-
- result = 0;
- if (fgDisplay.StateFullScreen != None)
- {
- result = fgHintPresent(fgStructure.CurrentWindow->Window.Handle,
- fgDisplay.State,
- fgDisplay.StateFullScreen);
- }
-
- return result;
-
+ return fgStructure.CurrentWindow->State.IsFullscreen;
#else
-
- return 0;
-
+ return 0;
#endif
}
GLXFBConfig * fbconfig;
int isPossible;
- fbconfig = fgChooseFBConfig();
+ fbconfig = fgChooseFBConfig(NULL);
if (fbconfig == NULL)
{
#if !defined(_WIN32_WCE)
if ( ( fgStructure.GameModeWindow != fgStructure.CurrentWindow ) && ( fgStructure.CurrentWindow->Parent == NULL ) &&
- ( ! fgStructure.CurrentWindow->IsMenu ) )
+ ( ! fgStructure.CurrentWindow->IsMenu ) &&
+ !( fgState.DisplayMode & GLUT_BORDERLESS ))
{
winRect.left += GetSystemMetrics( SM_CXSIZEFRAME );
winRect.right -= GetSystemMetrics( SM_CXSIZEFRAME );
#if defined(_WIN32_WCE)
return 0;
#else
+ if ( fgState.DisplayMode & GLUT_BORDERLESS )
+ return 0;
return GetSystemMetrics( SM_CXSIZEFRAME );
#endif /* !defined(_WIN32_WCE) */
#if defined(_WIN32_WCE)
return 0;
#else
+ if ( fgState.DisplayMode & GLUT_BORDERLESS )
+ return 0;
return GetSystemMetrics( SM_CYCAPTION );
#endif /* defined(_WIN32_WCE) */