X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FMain%2Fsplash.cxx;h=202b47c49d100fcada72367ec2996516965e0499;hb=ebe5fc30927a6b828577239b42ba65f520ac8775;hp=c0bc348c949208d9639a1702584e4177fbb2a24d;hpb=51353ead72bf98def9da84b18b3f78b40a5b3123;p=flightgear.git diff --git a/src/Main/splash.cxx b/src/Main/splash.cxx index c0bc348c9..202b47c49 100644 --- a/src/Main/splash.cxx +++ b/src/Main/splash.cxx @@ -46,10 +46,13 @@ #include #include +#include + #include "globals.hxx" #include "fg_props.hxx" #include "splash.hxx" #include "fg_os.hxx" +#include "renderer.hxx" static const int fontsize = 19; static const char fontname[] = "default.txf"; @@ -140,6 +143,7 @@ void fgSplashUpdate ( float alpha ) { 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) @@ -197,7 +201,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);