default FullScreen

This commit is contained in:
zhongjin 2022-11-10 15:46:35 +08:00
parent bfcadbff00
commit 8042ae79df

View File

@ -587,7 +587,10 @@ void fgOSFullScreen()
* single display) - so we detect full screen mode using "WindowDecoration" state instead.
* "false" - even when a single window is display in fullscreen */
//bool isFullScreen = x == 0 && y == 0 && width == (int)screenWidth && height == (int)screenHeight;
bool isFullScreen = !window->getWindowDecoration();
//bool isFullScreen = !window->getWindowDecoration();
bool isFullScreen = true;
SG_LOG(SG_VIEW, SG_DEBUG, "Toggling fullscreen. Previous window rectangle (" << x << ", " << y << ") x (" << width << ", " << height << "), fullscreen: " << isFullScreen << ", number of screens: " << wsi->getNumScreens());
if (isFullScreen) {