aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/gui
diff options
context:
space:
mode:
authorMartin Kiewitz2009-10-04 11:23:28 +0000
committerMartin Kiewitz2009-10-04 11:23:28 +0000
commit306c9d1db63b29f503db355170a73c3e642fa200 (patch)
tree02e74ce2520dd35011bd95e385ff1bd1e9155be5 /engines/sci/gui
parent837cde96f37fb61c16386442aad9feb552b96573 (diff)
downloadscummvm-rg350-306c9d1db63b29f503db355170a73c3e642fa200.tar.gz
scummvm-rg350-306c9d1db63b29f503db355170a73c3e642fa200.tar.bz2
scummvm-rg350-306c9d1db63b29f503db355170a73c3e642fa200.zip
SCI/newgui: SciGUIfont workaround for lsl1sci
svn-id: r44599
Diffstat (limited to 'engines/sci/gui')
-rw-r--r--engines/sci/gui/gui_font.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/engines/sci/gui/gui_font.cpp b/engines/sci/gui/gui_font.cpp
index 9e420cfb3a..3c6f552d5d 100644
--- a/engines/sci/gui/gui_font.cpp
+++ b/engines/sci/gui/gui_font.cpp
@@ -34,7 +34,11 @@ namespace Sci {
SciGUIfont::SciGUIfont(EngineState *state, SciGUIscreen *screen, sciResourceId resourceId)
: _s(state), _screen(screen), _resourceId(resourceId) {
assert(resourceId != -1);
- initData(resourceId);
+ if (_s->_gameName == "lsl1sci") {
+ // we remove upper bits for lsl1, because it wants to load font 2107 which is not available
+ _resourceId &= 0x7ff;
+ }
+ initData(_resourceId);
}
SciGUIfont::~SciGUIfont() {