From: mfranz Date: Sun, 29 Jan 2006 14:58:52 +0000 (+0000) Subject: don't set zero width or height X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=ebe5fc30927a6b828577239b42ba65f520ac8775;p=flightgear.git don't set zero width or height --- 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)