1
0
Fork 0

src/Viewer/splash.cxx: also show info about CompositeViewer if disabled.

This commit is contained in:
Julian Smith 2020-11-22 07:43:53 +00:00
parent fddb32f5c1
commit 1cf5b2ab44

View file

@ -204,12 +204,13 @@ void SplashScreen::createNodes()
nullptr, -1.0, osg::Vec4(1.0, 0.0, 0.0, 1.0));
}
if (fgGetBool("/sim/rendering/composite-viewer-enabled")) {
addText(geode, osg::Vec2(0.5f, 0.65f), 0.03,
"CompositeViewer",
osgText::Text::CENTER_CENTER,
nullptr, -1.0, osg::Vec4(1.0, 0.0, 0.0, 1.0));
}
addText(geode, osg::Vec2(0.5f, 0.65f), 0.03,
fgGetBool("/sim/rendering/composite-viewer-enabled")
? "CompositeViewer enabled"
: "CompositeViewer disabled\n(enable with --composite-viewer=1)"
,
osgText::Text::CENTER_CENTER,
nullptr, -1.0, osg::Vec4(1.0, 0.0, 0.0, 1.0));
///////////