From: mfranz Date: Thu, 7 Jul 2005 21:43:22 +0000 (+0000) Subject: read the splash font color from the gui style file. This is a bit of a X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=ae96deb2c135903095894d46a583a64ee0e0271f;p=flightgear.git read the splash font color from the gui style file. This is a bit of a gimmick, but it may be nice to adjust the font color to match the splash image, e.g. to make it darker for dark images, etc. --- diff --git a/src/Main/splash.cxx b/src/Main/splash.cxx index c0bc348c9..f33baf3e1 100644 --- a/src/Main/splash.cxx +++ b/src/Main/splash.cxx @@ -46,6 +46,8 @@ #include #include +#include + #include "globals.hxx" #include "fg_props.hxx" #include "splash.hxx" @@ -197,7 +199,10 @@ void fgSplashUpdate ( float alpha ) { float left, right, bot, top; info.begin(); - glColor4f(1.0, 0.9, 0.0, alpha); + FGColor c(1.0, 0.9, 0.0); + c.merge(fgGetNode("/sim/gui/colors/splash")); + glColor4f(c.red(), c.green(), c.blue(), alpha); + font.getBBox(progress_text, fontsize, 0, &left, &right, &bot, &top); info.start2f((screen_width - right) / 2.0, 10.0 - bot); info.puts(progress_text);