From ebe5fc30927a6b828577239b42ba65f520ac8775 Mon Sep 17 00:00:00 2001 From: mfranz Date: Sun, 29 Jan 2006 14:58:52 +0000 Subject: [PATCH] don't set zero width or height --- src/Main/splash.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Main/splash.cxx b/src/Main/splash.cxx index 7f5c4a8e6..202b47c49 100644 --- a/src/Main/splash.cxx +++ b/src/Main/splash.cxx @@ -139,11 +139,11 @@ void fgSplashProgress ( const char *s ) void fgSplashUpdate ( float alpha ) { int screen_width = fgGetInt("/sim/startup/xsize", 0); int screen_height = fgGetInt("/sim/startup/ysize", 0); - globals->get_renderer()->resize(screen_width, screen_height); if (!screen_width || !screen_height) return; + globals->get_renderer()->resize(screen_width, screen_height); int size = screen_width < (screen_height - 5 * fontsize) ? screen_width : screen_height - 5 * fontsize; if (size > 512) -- 2.39.5