From b67e68b684ec598af374017c604d77aa816f1404 Mon Sep 17 00:00:00 2001 From: curt Date: Mon, 28 Jun 1999 18:19:26 +0000 Subject: [PATCH] FreeBSD tweaks. --- acconfig.h | 3 +++ src/Main/main.cxx | 8 ++++---- src/Main/splash.cxx | 4 ++++ 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/acconfig.h b/acconfig.h index 71eec2842..ab88dd6e6 100644 --- a/acconfig.h +++ b/acconfig.h @@ -141,6 +141,9 @@ /* Define if you have the strftime function. */ #undef HAVE_STRFTIME +/* Define if you have */ +#undef HAVE_SYS_PARAM_H + /* Define if you have that is POSIX.1 compatible. */ #undef HAVE_SYS_STAT_H diff --git a/src/Main/main.cxx b/src/Main/main.cxx index 8e06130c8..c26b29d76 100644 --- a/src/Main/main.cxx +++ b/src/Main/main.cxx @@ -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; diff --git a/src/Main/splash.cxx b/src/Main/splash.cxx index 7f07e2918..d69e30b5c 100644 --- a/src/Main/splash.cxx +++ b/src/Main/splash.cxx @@ -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; -- 2.39.2