diff options
author | Filippos Karapetis | 2009-07-07 20:01:15 +0000 |
---|---|---|
committer | Filippos Karapetis | 2009-07-07 20:01:15 +0000 |
commit | 802abfd8cbaf3143f2c66053a4839ee3914596ce (patch) | |
tree | ea0063669385c80d0331451579b5bf6f4057d15c /engines/sci/gfx | |
parent | 4dc454581cb9a8f673cf10e9508eeb1325570f79 (diff) | |
download | scummvm-rg350-802abfd8cbaf3143f2c66053a4839ee3914596ce.tar.gz scummvm-rg350-802abfd8cbaf3143f2c66053a4839ee3914596ce.tar.bz2 scummvm-rg350-802abfd8cbaf3143f2c66053a4839ee3914596ce.zip |
Added a workaround for incorrect font references in LSL1VGA (which was the original purpose of the code removed in rev. 42219)
svn-id: r42238
Diffstat (limited to 'engines/sci/gfx')
-rw-r--r-- | engines/sci/gfx/gfx_resmgr.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/engines/sci/gfx/gfx_resmgr.cpp b/engines/sci/gfx/gfx_resmgr.cpp index 5a1556ca41..4a97d94f31 100644 --- a/engines/sci/gfx/gfx_resmgr.cpp +++ b/engines/sci/gfx/gfx_resmgr.cpp @@ -616,6 +616,12 @@ gfx_bitmap_font_t *GfxResManager::getFont(int num, bool scaled) { gfx_resource_t *res = NULL; int hash = getOptionsHash(GFX_RESOURCE_TYPE_FONT); + // Workaround: LSL1VGA mixes its own internal fonts with the global + // SCI ones, so we translate them here + if (!resMap.contains(num) && num >= 2048) + if (!_resManager->testResource(ResourceId(kResourceTypeFont, num))) + num = num - 2048; + res = resMap.contains(num) ? resMap[num] : NULL; if (!res || res->mode != hash) { |