1
0
Fork 0

Update /sim/startup/fullscreen prop at runtime, that way we know the current state of the window

This commit is contained in:
Clément de l'Hamaide 2014-11-18 17:14:11 +01:00
parent 71da5b7a76
commit c3eda927a9

View file

@ -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);