From 8042ae79df5828e3d236c9468b3c641f38ee6e96 Mon Sep 17 00:00:00 2001 From: zhongjin Date: Thu, 10 Nov 2022 15:46:35 +0800 Subject: [PATCH] default FullScreen --- src/Viewer/fg_os_osgviewer.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Viewer/fg_os_osgviewer.cxx b/src/Viewer/fg_os_osgviewer.cxx index c723049..0fdd391 100755 --- a/src/Viewer/fg_os_osgviewer.cxx +++ b/src/Viewer/fg_os_osgviewer.cxx @@ -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) {