aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/graphics
diff options
context:
space:
mode:
authorMartin Kiewitz2010-08-23 16:33:19 +0000
committerMartin Kiewitz2010-08-23 16:33:19 +0000
commit7b8add291ebae5360bc8a68a3cc6bc1edae9a998 (patch)
treef5fdf508ffb9050c950873f56281ed55cce767e4 /engines/sci/graphics
parentc1e63b55e408ebbc3b4b969b9b7792065cb2a099 (diff)
downloadscummvm-rg350-7b8add291ebae5360bc8a68a3cc6bc1edae9a998.tar.gz
scummvm-rg350-7b8add291ebae5360bc8a68a3cc6bc1edae9a998.tar.bz2
scummvm-rg350-7b8add291ebae5360bc8a68a3cc6bc1edae9a998.zip
SCI: multiple changes for mother goose vga
which is sci1 and sci1.1 fixes bug #3051145 - separating this mother goose from ega and sci2.1 - adding workaround when restoring saved games in these games, games try to calculate restored savedgameid instead of looking it up, we patch this code out and also set the global to the current savedgameid - adding workaround for scripts checking savedgameid to be below 13 (our savedgameids begin at 100 now) - changing official range for savedgameids from 1000->1999 to 100->199, otherwise mother goose would have required much larger patches and this range should be fine even if we replace savedgame dialogs later svn-id: r52301
Diffstat (limited to 'engines/sci/graphics')
-rw-r--r--engines/sci/graphics/ports.cpp13
1 files changed, 3 insertions, 10 deletions
diff --git a/engines/sci/graphics/ports.cpp b/engines/sci/graphics/ports.cpp
index 34fba9b1e4..12ac1d2025 100644
--- a/engines/sci/graphics/ports.cpp
+++ b/engines/sci/graphics/ports.cpp
@@ -105,16 +105,9 @@ void GfxPorts::init(bool usesOldGfxFunctions, GfxPaint16 *paint16, GfxText16 *te
case GID_CNICK_KQ:
offTop = 0;
break;
- case GID_MOTHERGOOSE:
- // TODO: if mother goose EGA also uses offTop we can simply remove this check altogether
- switch (getSciVersion()) {
- case SCI_VERSION_1_EARLY:
- case SCI_VERSION_1_1:
- offTop = 0;
- break;
- default:
- break;
- }
+ case GID_MOTHERGOOSE256:
+ // only the SCI1 and SCI1.1 (VGA) versions need this
+ offTop = 0;
break;
case GID_FAIRYTALES:
// Mixed-Up Fairy Tales (& its demo) uses -w 26 0 200 320. If we don't