X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FMain%2Fsplash.cxx;h=334cd63aae55604e0f9c73d2e32f152ff9c47461;hb=2385e5d3876dd6e5dd8aadbb239a6e959647aee2;hp=7f5c4a8e6b429f8d1f63acbceedcbba13d93a3ec;hpb=8f9d8cab03a58efe1c157506e2d20dab8c87b6c9;p=flightgear.git diff --git a/src/Main/splash.cxx b/src/Main/splash.cxx index 7f5c4a8e6..334cd63aa 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) @@ -168,7 +168,9 @@ void fgSplashUpdate ( float alpha ) { glDisable(GL_LIGHTING); // draw the background - glColor4f( 0.0, 0.0, 0.0, alpha ); + FGColor c(0.0, 0.0, 0.0); + c.merge(fgGetNode("/sim/gui/colors/splash-screen")); + glColor4f(c.red(), c.green(), c.blue(), alpha ); glBegin(GL_POLYGON); glVertex2f(0.0, 0.0); glVertex2f(screen_width, 0.0); @@ -202,7 +204,7 @@ void fgSplashUpdate ( float alpha ) { info.begin(); FGColor c(1.0, 0.9, 0.0); - c.merge(fgGetNode("/sim/gui/colors/splash")); + c.merge(fgGetNode("/sim/gui/colors/splash-font")); glColor4f(c.red(), c.green(), c.blue(), alpha); font.getBBox(progress_text, fontsize, 0, &left, &right, &bot, &top);