From 5c1094967fed21c0d9cf9e6500a9db6a68930971 Mon Sep 17 00:00:00 2001 From: zhongjin Date: Fri, 11 Nov 2022 15:34:07 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'src/Viewer/fg=5Fos=5Fosgv?= =?UTF-8?q?iewer.cxx'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Viewer/fg_os_osgviewer.cxx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/Viewer/fg_os_osgviewer.cxx b/src/Viewer/fg_os_osgviewer.cxx index fe2b599..6562f89 100755 --- a/src/Viewer/fg_os_osgviewer.cxx +++ b/src/Viewer/fg_os_osgviewer.cxx @@ -588,9 +588,7 @@ void fgOSFullScreen() * "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 = false; + bool isFullScreen = !window->getWindowDecoration(); 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) {