aboutsummaryrefslogtreecommitdiff
path: root/scumm
diff options
context:
space:
mode:
authorGregory Montoir2005-08-31 20:26:44 +0000
committerGregory Montoir2005-08-31 20:26:44 +0000
commit149d8c835e7a8178bf08956c72bc0157bfcf94b2 (patch)
treed9dca4faeb0865caba1909961e85e3dc565ebb57 /scumm
parent288759abd26e5b6bb93429e331791ebeead668ab (diff)
downloadscummvm-rg350-149d8c835e7a8178bf08956c72bc0157bfcf94b2.tar.gz
scummvm-rg350-149d8c835e7a8178bf08956c72bc0157bfcf94b2.tar.bz2
scummvm-rg350-149d8c835e7a8178bf08956c72bc0157bfcf94b2.zip
get rid of the GF_DEFAULT_TO_1X_SCALER hack for _heversion >= 71
svn-id: r18725
Diffstat (limited to 'scumm')
-rw-r--r--scumm/scumm.cpp25
1 files changed, 5 insertions, 20 deletions
diff --git a/scumm/scumm.cpp b/scumm/scumm.cpp
index b6ba0bccfa..fe8ca0ee92 100644
--- a/scumm/scumm.cpp
+++ b/scumm/scumm.cpp
@@ -1222,12 +1222,6 @@ ScummEngine::ScummEngine(GameDetector *detector, OSystem *syst, const ScummGameS
_hexdumpScripts = false;
_showStack = false;
- // FIXME: a dirty hack. Currently this is checked before engine
- // creation.
- if (_heversion >= 71) {
- _features |= GF_DEFAULT_TO_1X_SCALER;
- }
-
if (_platform == Common::kPlatformFMTowns && _version == 3) { // FM-TOWNS V3 games use 320x240
_screenWidth = 320;
_screenHeight = 240;
@@ -1464,13 +1458,6 @@ int ScummEngine::init(GameDetector &detector) {
if (_features & GF_DEFAULT_TO_1X_SCALER)
_system->setGraphicsMode("1x");
}
-
- // FIXME: All this seems a dirty hack to me. We already
- // have this check in constructor
- if (_heversion >= 71) {
- _features |= GF_DEFAULT_TO_1X_SCALER;
- }
-
_system->endGFXTransaction();
// On some systems it's not safe to run CD audio games from the CD.
@@ -2953,11 +2940,15 @@ Engine *Engine_SCUMM_create(GameDetector *detector, OSystem *syst) {
if (g->name) {
game = *g;
game.name = name;
-
if (game.description)
g_system->setWindowCaption(game.description);
}
}
+ // Starting from version 7.1, HE games use 640x480. We check this here since multiple
+ // versions _could_ use different resolutions (I haven't verified this, though).
+ if (game.heversion >= 71) {
+ game.features |= GF_DEFAULT_TO_1X_SCALER;
+ }
// TODO: REMOVE DEPRECATED OPTION
// (Perhaps GUI should display a messagebox on encountering an unknown key?)
@@ -2973,12 +2964,6 @@ Engine *Engine_SCUMM_create(GameDetector *detector, OSystem *syst) {
game.midi = MDT_TOWNS;
}
- // Special cases for HE games
- // Games starting freddi use 640x480
- if (game.heversion >= 71) {
- game.features |= GF_DEFAULT_TO_1X_SCALER;
- }
-
switch (game.version) {
case 1:
case 2: