Update /sim/startup/fullscreen prop at runtime, that way we know the current state of the window
This commit is contained in:
parent
71da5b7a76
commit
c3eda927a9
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue