]> git.mxchange.org Git - flightgear.git/blobdiff - src/Main/splash.cxx
don't set zero width or height
[flightgear.git] / src / Main / splash.cxx
index f33baf3e10d6ab206d2f375ef6c2cab59be4a4ef..202b47c49d100fcada72367ec2996516965e0499 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";
@@ -142,6 +143,7 @@ void fgSplashUpdate ( float alpha ) {
     if (!screen_width || !screen_height)
         return;
 
+    globals->get_renderer()->resize(screen_width, screen_height);
     int size = screen_width < (screen_height - 5 * fontsize)
             ? screen_width : screen_height - 5 * fontsize;
     if (size > 512)