]> git.mxchange.org Git - flightgear.git/commitdiff
now that the renderer doesn't resize the window for every frame, we need
authormfranz <mfranz>
Sat, 28 Jan 2006 13:38:28 +0000 (13:38 +0000)
committermfranz <mfranz>
Sat, 28 Jan 2006 13:38:28 +0000 (13:38 +0000)
to do it manually here

src/Main/splash.cxx

index f33baf3e10d6ab206d2f375ef6c2cab59be4a4ef..7f5c4a8e6b429f8d1f63acbceedcbba13d93a3ec 100644 (file)
@@ -52,6 +52,7 @@
 #include "fg_props.hxx"
 #include "splash.hxx"
 #include "fg_os.hxx"
+#include "renderer.hxx"
 
 static const int fontsize = 19;
 static const char fontname[] = "default.txf";
@@ -138,6 +139,7 @@ void fgSplashProgress ( const char *s )
 void fgSplashUpdate ( float alpha ) {
     int screen_width = fgGetInt("/sim/startup/xsize", 0);
     int screen_height = fgGetInt("/sim/startup/ysize", 0);
+    globals->get_renderer()->resize(screen_width, screen_height);
 
     if (!screen_width || !screen_height)
         return;