]> git.mxchange.org Git - flightgear.git/blobdiff - src/Main/splash.cxx
Fix moon drawing at night.
[flightgear.git] / src / Main / splash.cxx
index 21ddc0e806ce1c0a1870ae00a5333d2f323a0c28..f2be9494582caeb3c0be04fd76c3674556fe0534 100644 (file)
@@ -41,7 +41,7 @@
 
 #include <simgear/debug/logstream.hxx>
 #include <simgear/math/sg_random.h>
-#include <simgear/misc/fgpath.hxx>
+#include <simgear/misc/sg_path.hxx>
 
 #include <Objects/texload.h>
 
@@ -58,7 +58,7 @@ static GLubyte *splash_texbuf;
 void fgSplashInit ( void ) {
     int width, height;
 
-    FG_LOG( FG_GENERAL, FG_INFO, "Initializing splash screen" );
+    SG_LOG( SG_GENERAL, SG_INFO, "Initializing splash screen" );
 #ifdef GL_VERSION_1_1
     xglGenTextures(1, &splash_texid);
     xglBindTexture(GL_TEXTURE_2D, splash_texid);
@@ -79,7 +79,7 @@ void fgSplashInit ( void ) {
     char num_str[256];
     sprintf(num_str, "%d", num);
 
-    FGPath tpath( globals->get_fg_root() );
+    SGPath tpath( globals->get_fg_root() );
     tpath.append( "Textures/Splash" );
     tpath.concat( num_str );
     tpath.concat( ".rgb" );
@@ -88,12 +88,12 @@ void fgSplashInit ( void ) {
          read_rgb_texture(tpath.c_str(), &width, &height)) == NULL )
     {
        // Try compressed
-       FGPath fg_tpath = tpath;
+       SGPath fg_tpath = tpath;
        fg_tpath.concat( ".gz" );
        if ( (splash_texbuf = 
              read_rgb_texture(fg_tpath.c_str(), &width, &height)) == NULL )
        {
-           FG_LOG( FG_GENERAL, FG_ALERT, 
+           SG_LOG( SG_GENERAL, SG_ALERT, 
                    "Error in loading splash screen texture " << tpath.str() );
            exit(-1);
        }