mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-03 09:23:37 +00:00
SCI: Fixed the up/down buttons in GK1
This commit is contained in:
parent
5509d092be
commit
e2a2cee092
@ -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));
|
||||
|
Loading…
x
Reference in New Issue
Block a user