diff --git a/src/Main/WindowBuilder.cxx b/src/Main/WindowBuilder.cxx index 2ca83cfc6..ceb23b461 100644 --- a/src/Main/WindowBuilder.cxx +++ b/src/Main/WindowBuilder.cxx @@ -53,12 +53,8 @@ WindowBuilder::makeDefaultTraits(bool stencil) GraphicsContext::WindowingSystemInterface* wsi = osg::GraphicsContext::getWindowingSystemInterface(); GraphicsContext::Traits* traits = new osg::GraphicsContext::Traits; + traits->readDISPLAY(); - - unsigned screenwidth = 0; - unsigned screenheight = 0; - wsi->getScreenResolution(*traits, screenwidth, screenheight); - if (traits->displayNum < 0) traits->displayNum = 0; if (traits->screenNum < 0) @@ -76,6 +72,10 @@ WindowBuilder::makeDefaultTraits(bool stencil) if (stencil) traits->stencil = 8; + unsigned screenwidth = 0; + unsigned screenheight = 0; + wsi->getScreenResolution(*traits, screenwidth, screenheight); + traits->doubleBuffer = true; traits->mipMapGeneration = true; traits->windowName = "FlightGear"; diff --git a/src/Main/main.cxx b/src/Main/main.cxx index b0460ba1a..bc17b04b0 100644 --- a/src/Main/main.cxx +++ b/src/Main/main.cxx @@ -618,10 +618,11 @@ int fgMainInit( int argc, char **argv ) { // tell the operator how to use this application SG_LOG( SG_GENERAL, SG_ALERT, "" ); // To popup the console on windows - cerr << endl << "Base package check failed ... " \ - << "Found version " << base_version << " at: " \ - << globals->get_fg_root() << endl; - cerr << "Please upgrade to version: " << required_version << endl; + cerr << endl << "Base package check failed:" << endl \ + << " Version " << base_version << " found at: " \ + << globals->get_fg_root() << endl \ + << " Version " << required_version << " is required." << endl \ + << "Please upgrade/downgrade base package." << endl; #ifdef _MSC_VER cerr << "Hit a key to continue..." << endl; cin.get();