diff options
author | md5 | 2011-04-29 03:06:15 +0300 |
---|---|---|
committer | md5 | 2011-04-29 03:06:15 +0300 |
commit | 6d05012bda9fe3529209a6584db14d9942972043 (patch) | |
tree | afc0a53f72c19a53499b607ac4e7b53593ab5afa /engines/sci/graphics | |
parent | 89362b5af4a4ebd9430f2a5a1179e8ef171cf0c3 (diff) | |
download | scummvm-rg350-6d05012bda9fe3529209a6584db14d9942972043.tar.gz scummvm-rg350-6d05012bda9fe3529209a6584db14d9942972043.tar.bz2 scummvm-rg350-6d05012bda9fe3529209a6584db14d9942972043.zip |
SCI: Fixed bug #3289744 - "Hero Quest 1 demo crashes"
Diffstat (limited to 'engines/sci/graphics')
-rw-r--r-- | engines/sci/graphics/paint16.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/sci/graphics/paint16.cpp b/engines/sci/graphics/paint16.cpp index cba2868eeb..bb23fb882c 100644 --- a/engines/sci/graphics/paint16.cpp +++ b/engines/sci/graphics/paint16.cpp @@ -467,6 +467,7 @@ void GfxPaint16::kernelGraphRedrawBox(Common::Rect rect) { #define SCI_DISPLAY_RESTOREUNDER 108 #define SCI_DISPLAY_DUMMY1 114 // used in longbow demo/qfg1 ega demo, not supported in sierra sci - no parameters #define SCI_DISPLAY_DUMMY2 115 // used in longbow demo, not supported in sierra sci - has 1 parameter +#define SCI_DISPLAY_DUMMY3 117 // used in qfg1 ega demo, not supported in sierra sci - no parameters #define SCI_DISPLAY_DONTSHOWBITS 121 reg_t GfxPaint16::kernelDisplay(const char *text, int argc, reg_t *argv) { @@ -537,9 +538,10 @@ reg_t GfxPaint16::kernelDisplay(const char *text, int argc, reg_t *argv) { break; // 2 Dummy functions, longbow-demo is using those several times but sierra sci doesn't support them at all - // The Quest for Glory 1 EGA demo also calls kDisplay(114) + // The Quest for Glory 1 EGA demo also calls kDisplay(114) and kDisplay(117) case SCI_DISPLAY_DUMMY1: case SCI_DISPLAY_DUMMY2: + case SCI_DISPLAY_DUMMY3: if (!g_sci->isDemo() || (g_sci->getGameId() != GID_LONGBOW && g_sci->getGameId() != GID_QFG1)) error("Unknown kDisplay argument %d", displayArg.offset); if (displayArg.offset == SCI_DISPLAY_DUMMY2) { |