]> git.mxchange.org Git - flightgear.git/blobdiff - src/Main/splash.cxx
Work around a problem in certain NVidia adapters hat don't support fgPushAttrib(FG_FO...
[flightgear.git] / src / Main / splash.cxx
index 0c6e68e45b57a3e357ee9f5313813a0754e51c50..12e7bb6eb4ca562abe3e83f182453ae000c7c77c 100644 (file)
@@ -39,9 +39,9 @@
 #include <string.h>
 
 #include <simgear/debug/logstream.hxx>
+#include <simgear/screen/texture.hxx>
 #include <simgear/math/sg_random.h>
 #include <simgear/misc/sg_path.hxx>
-#include <simgear/misc/texture.hxx>
 
 #include "globals.hxx"
 #include "fg_props.hxx"
@@ -58,7 +58,7 @@ void fgSplashInit ( void ) {
     splash.bind();
 
     // load in the texture data
-    int num = (int)(sg_random() * 4.0 + 1.0);
+    int num = (int)(sg_random() * 5.0 + 1.0);
     char num_str[256];
     sprintf(num_str, "%d", num);
 
@@ -90,8 +90,8 @@ void fgSplashInit ( void ) {
 // Update the splash screen with progress specified from 0.0 to 1.0
 void fgSplashUpdate ( double progress, float alpha ) {
     int xmin, ymin, xmax, ymax;
-    int xsize = 480;
-    int ysize = 380;
+    int xsize = 512;
+    int ysize = 512;
 
     if ( !fgGetInt("/sim/startup/xsize")
         || !fgGetInt("/sim/startup/ysize") ) {