]> git.mxchange.org Git - flightgear.git/commitdiff
FreeBSD tweaks.
authorcurt <curt>
Mon, 28 Jun 1999 18:19:26 +0000 (18:19 +0000)
committercurt <curt>
Mon, 28 Jun 1999 18:19:26 +0000 (18:19 +0000)
acconfig.h
src/Main/main.cxx
src/Main/splash.cxx

index 71eec2842ede9dce9af03353a3c9c07a091c9dbc..ab88dd6e60ba89eaa65c70002c73d7c2ac13b8fd 100644 (file)
 /* Define if you have the strftime function.  */
 #undef HAVE_STRFTIME
 
+/* Define if you have <sys/param.h>  */
+#undef HAVE_SYS_PARAM_H
+
 /* Define if you have <sys/stat.h> that is POSIX.1 compatible.  */
 #undef HAVE_SYS_STAT_H
 
index 8e06130c8f2d88f3bbf3bba8ae0f268ec16a4c14..c26b29d7644198021631066f5a156cb59363dfb9 100644 (file)
@@ -1067,10 +1067,10 @@ int main( int argc, char **argv ) {
     // distribution) specifically from the ssg tux example
     //
 
-    ssgModelPath( "/stage/pinky01/src/Libs/plib-1.0.12/examples/ssg/tux/data/" );
-    ssgTexturePath( "/stage/pinky01/src/Libs/plib-1.0.12/examples/ssg/tux/data/" );
-    // ssgModelPath( "/h/curt/src/Libs/plib-1.0.12/examples/ssg/tux/data/" );
-    // ssgTexturePath( "/h/curt/src/Libs/plib-1.0.12/examples/ssg/tux/data/" );
+    // ssgModelPath( "/stage/pinky01/src/Libs/plib-1.0.12/examples/ssg/tux/data/" );
+    // ssgTexturePath( "/stage/pinky01/src/Libs/plib-1.0.12/examples/ssg/tux/data/" );
+    ssgModelPath( "/h/curt/src/Libs/plib-1.0.12/examples/ssg/tux/data/" );
+    ssgTexturePath( "/h/curt/src/Libs/plib-1.0.12/examples/ssg/tux/data/" );
 
     scene = new ssgRoot;
     terrain = new ssgBranch;
index 7f07e291841def0dd1cf89f8498d8442d1ff8f26..d69e30b5c758bef4758d5ac29ad23929cd6f90b4 100644 (file)
@@ -109,6 +109,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;