]> git.mxchange.org Git - flightgear.git/blobdiff - src/GUI/gui_local.cxx
Don't restore initial screen geometry because there is nothing in fg_os* to resize...
[flightgear.git] / src / GUI / gui_local.cxx
index 1ec2b08ed5a24c29bdf8db1dbc67e9a1e7464ab9..64318b62e149fa05670259a10cad78e15156cec4 100644 (file)
@@ -73,6 +73,11 @@ void reInit(puObject *cb)
     // update our position based on current presets
     fgInitPosition();
 
+    // We don't know how to resize the window, so keep the last values 
+    //  for xsize and ysize, and don't use the one set initially
+    fgSetInt("/sim/startup/xsize",xsize);
+    fgSetInt("/sim/startup/ysize",ysize);
+
     SGTime *t = globals->get_time_params();
     delete t;
     t = fgInitTime();
@@ -81,9 +86,10 @@ void reInit(puObject *cb)
     fgReInitSubsystems();
 
     globals->get_tile_mgr()->update( fgGetDouble("/environment/visibility-m") );
-
     globals->get_renderer()->resize( xsize, ysize );
 
+    fgSetBool("/sim/signals/reinit", true);
+
     // BusyCursor(1);
     
     if ( !freeze ) {