Just a gimmick: make background color configurable. Maybe some dark color
might look nicer for certain aircraft specific splash screens. Test with: $ fgfs --prop:/sim/gui/colors/splash-screen/blue=0.35
This commit is contained in:
parent
cc27909e6f
commit
2385e5d387
1 changed files with 4 additions and 2 deletions
|
@ -168,7 +168,9 @@ void fgSplashUpdate ( float alpha ) {
|
||||||
glDisable(GL_LIGHTING);
|
glDisable(GL_LIGHTING);
|
||||||
|
|
||||||
// draw the background
|
// 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);
|
glBegin(GL_POLYGON);
|
||||||
glVertex2f(0.0, 0.0);
|
glVertex2f(0.0, 0.0);
|
||||||
glVertex2f(screen_width, 0.0);
|
glVertex2f(screen_width, 0.0);
|
||||||
|
@ -202,7 +204,7 @@ void fgSplashUpdate ( float alpha ) {
|
||||||
|
|
||||||
info.begin();
|
info.begin();
|
||||||
FGColor c(1.0, 0.9, 0.0);
|
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);
|
glColor4f(c.red(), c.green(), c.blue(), alpha);
|
||||||
|
|
||||||
font.getBBox(progress_text, fontsize, 0, &left, &right, &bot, &top);
|
font.getBBox(progress_text, fontsize, 0, &left, &right, &bot, &top);
|
||||||
|
|
Loading…
Reference in a new issue