diff options
author | Filippos Karapetis | 2011-10-29 05:21:06 +0300 |
---|---|---|
committer | Filippos Karapetis | 2011-10-29 05:21:47 +0300 |
commit | e2a2cee092b6aca7461445910e1d2a2d90ab3356 (patch) | |
tree | 7c21b97d26afd8b7d81ee7da0dfb1410fc0763af | |
parent | 5509d092be04a6238e34444eae21c687919726f4 (diff) | |
download | scummvm-rg350-e2a2cee092b6aca7461445910e1d2a2d90ab3356.tar.gz scummvm-rg350-e2a2cee092b6aca7461445910e1d2a2d90ab3356.tar.bz2 scummvm-rg350-e2a2cee092b6aca7461445910e1d2a2d90ab3356.zip |
SCI: Fixed the up/down buttons in GK1
-rw-r--r-- | engines/sci/graphics/text32.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/engines/sci/graphics/text32.cpp b/engines/sci/graphics/text32.cpp index cdb998a79f..2c8f23d2b7 100644 --- a/engines/sci/graphics/text32.cpp +++ b/engines/sci/graphics/text32.cpp @@ -62,6 +62,11 @@ reg_t GfxText32::createTextBitmap(reg_t textObject, uint16 maxWidth, uint16 maxH stringObject = readSelector(_segMan, stringObject, SELECTOR(data)); Common::String text = _segMan->getString(stringObject); + // HACK: The character offsets of the up and down arrow buttons are off by one + // in GK1, for some unknown reason. Fix them here. + if (text.size() == 1 && (text[0] == 29 || text[0] == 30)) { + text.setChar(text[0] + 1, 0); + } GuiResourceId fontId = readSelectorValue(_segMan, textObject, SELECTOR(font)); GfxFont *font = _cache->getFont(fontId); bool dimmed = readSelectorValue(_segMan, textObject, SELECTOR(dimmed)); |