diff options
author | Walter van Niftrik | 2010-01-24 18:57:23 +0000 |
---|---|---|
committer | Walter van Niftrik | 2010-01-24 18:57:23 +0000 |
commit | e7e90061228b4a680fa0a15cdfca413636d22396 (patch) | |
tree | ae595f249e3713c0cce803d15baaff059dc426ea | |
parent | 865b176b15a6a84c403129e6eac87694ce4d6be0 (diff) | |
download | scummvm-rg350-e7e90061228b4a680fa0a15cdfca413636d22396.tar.gz scummvm-rg350-e7e90061228b4a680fa0a15cdfca413636d22396.tar.bz2 scummvm-rg350-e7e90061228b4a680fa0a15cdfca413636d22396.zip |
SCI: Fix list control scrolling in Jones EGA and VGA.
svn-id: r47511
-rw-r--r-- | engines/sci/engine/kgraphics.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/engines/sci/engine/kgraphics.cpp b/engines/sci/engine/kgraphics.cpp index 3048e30745..3f96afcd9a 100644 --- a/engines/sci/engine/kgraphics.cpp +++ b/engines/sci/engine/kgraphics.cpp @@ -779,8 +779,11 @@ void _k_GenericDrawControl(EngineState *s, reg_t controlObject, bool hilite) { // Games from early SCI1 onwards use topString upperOffset = GET_SEL32V(s->_segMan, controlObject, topString); } else { - // Earlier games use lsTop - upperOffset = GET_SEL32V(s->_segMan, controlObject, lsTop); + // Earlier games use lsTop or brTop + if (lookup_selector(s->_segMan, controlObject, s->_kernel->_selectorCache.brTop, NULL, NULL) == kSelectorVariable) + upperOffset = GET_SEL32V(s->_segMan, controlObject, brTop); + else + upperOffset = GET_SEL32V(s->_segMan, controlObject, lsTop); } // Count string entries in NULL terminated string list |