Make sure the LauncherDialog can actually fit into the display device.

Minor bump to version #, for beta testing on AtariAge.


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1275 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
This commit is contained in:
stephena 2007-01-10 20:29:10 +00:00
parent a3743440de
commit 49249ee9da
2 changed files with 10 additions and 3 deletions

View File

@ -13,13 +13,13 @@
// See the file "license" for information on usage and redistribution of
// this file, and for a DISCLAIMER OF ALL WARRANTIES.
//
// $Id: Version.hxx,v 1.23 2007-01-01 18:21:04 stephena Exp $
// $Id: Version.hxx,v 1.24 2007-01-10 20:29:10 stephena Exp $
//============================================================================
#ifndef VERSION_HXX
#define VERSION_HXX
#define STELLA_BASE_VERSION "2.3.02"
#define STELLA_BASE_VERSION "2.3.03"
#ifdef NIGHTLY_BUILD
#define STELLA_VERSION STELLA_BASE_VERSION "pre-" NIGHTLY_BUILD

View File

@ -13,7 +13,7 @@
// See the file "license" for information on usage and redistribution of
// this file, and for a DISCLAIMER OF ALL WARRANTIES.
//
// $Id: Launcher.cxx,v 1.11 2007-01-01 18:04:53 stephena Exp $
// $Id: Launcher.cxx,v 1.12 2007-01-10 20:29:10 stephena Exp $
//============================================================================
#include "Version.hxx"
@ -46,6 +46,13 @@ Launcher::Launcher(OSystem* osystem)
myHeight = 384;
break;
}
// Error check the resolution
int w, h;
osystem->getScreenDimensions(w, h);
if(myWidth > w) myWidth = w;
if(myHeight > h) myHeight = h;
myBaseDialog = new LauncherDialog(myOSystem, this, 0, 0, myWidth, myHeight);
}