]> git.mxchange.org Git - flightgear.git/blobdiff - src/GUI/gui_local.cxx
Fix line endings
[flightgear.git] / src / GUI / gui_local.cxx
index cb839815f2ae5b584e116c21f0a961980187f9b3..0feed8a7e6f5dbdfff50c50d5035088e50c94707 100644 (file)
@@ -6,7 +6,6 @@
 #  include <windows.h>
 #endif
 
-#include <Main/fg_os.hxx>   // needed before pu.h
 #include <plib/pu.h>        // plib include
 
 #include <FDM/flight.hxx>
@@ -14,6 +13,7 @@
 #include <Main/globals.hxx>
 #include <Main/fg_init.hxx>
 #include <Main/fg_props.hxx>
+#include <Main/renderer.hxx>
 #include <Scenery/tilemgr.hxx>
 #include <Time/light.hxx>
 
@@ -81,8 +81,9 @@ void reInit(puObject *cb)
     fgReInitSubsystems();
 
     globals->get_tile_mgr()->update( fgGetDouble("/environment/visibility-m") );
+    globals->get_renderer()->resize( xsize, ysize );
 
-    fgReshape( xsize, ysize );
+    fgSetBool("/sim/signals/reinit", true);
 
     // BusyCursor(1);