#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"
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;