From: Clément de l'Hamaide Date: Tue, 18 Nov 2014 16:14:11 +0000 (+0100) Subject: Update /sim/startup/fullscreen prop at runtime, that way we know the current state... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=c3eda927a99457af963cdee1aae8d132998b2adc;p=flightgear.git Update /sim/startup/fullscreen prop at runtime, that way we know the current state of the window --- diff --git a/src/Viewer/fg_os_osgviewer.cxx b/src/Viewer/fg_os_osgviewer.cxx index 7ba993218..b925045aa 100644 --- a/src/Viewer/fg_os_osgviewer.cxx +++ b/src/Viewer/fg_os_osgviewer.cxx @@ -445,6 +445,7 @@ void fgOSFullScreen() // set xsize/ysize properties to adapt GUI planes fgSetInt("/sim/startup/xsize", width); fgSetInt("/sim/startup/ysize", height); + fgSetBool("/sim/startup/fullscreen", !isFullScreen); // reconfigure window window->setWindowDecoration(isFullScreen);