]> git.mxchange.org Git - flightgear.git/blobdiff - src/Main/splash.cxx
Added code to put aircraft at the end of the runway closest to the desired
[flightgear.git] / src / Main / splash.cxx
index 7f07e291841def0dd1cf89f8498d8442d1ff8f26..c56be67790f82d2d1a3ad5444edd328facc93b9f 100644 (file)
 #endif
 
 #include <GL/glut.h>
-#include <XGL/xgl.h>
+#include <simgear/xgl/xgl.h>
 
 #include <string.h>
 
-#include <Debug/logstream.hxx>
+#include <simgear/debug/logstream.hxx>
+#include <simgear/math/fg_random.h>
+#include <simgear/misc/fgpath.hxx>
+
 #include <Main/options.hxx>
-#include <Math/fg_random.h>
-#include <Misc/fgpath.hxx>
 #include <Objects/texload.h>
 
 #include "splash.hxx"
@@ -109,6 +110,10 @@ void fgSplashUpdate ( double progress ) {
     int xsize = 480;
     int ysize = 380;
 
+    if ( !current_view.get_winWidth() || !current_view.get_winHeight() ) {
+       return;
+    }
+
     xmin = (current_view.get_winWidth() - xsize) / 2;
     xmax = xmin + xsize;