mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-18 16:03:05 +00:00
SHERLOCK: Don't print bogus hotkey
This commit is contained in:
parent
12ed6c83fe
commit
a728a5aee1
@ -96,11 +96,13 @@ void ScalpelScreen::buttonPrint(const Common::Point &pt, uint color, bool slamIt
|
||||
if (slamIt) {
|
||||
print(Common::Point(xStart, pt.y + 1),
|
||||
COMMAND_FOREGROUND, "%s", buttonText.c_str() + skipTextOffset);
|
||||
print(Common::Point(xStart + prefixOffsetX, pt.y + 1), COMMAND_HIGHLIGHTED, "%c", hotkey);
|
||||
if (textContainsHotkey)
|
||||
print(Common::Point(xStart + prefixOffsetX, pt.y + 1), COMMAND_HIGHLIGHTED, "%c", hotkey);
|
||||
} else {
|
||||
gPrint(Common::Point(xStart, pt.y),
|
||||
COMMAND_FOREGROUND, "%s", buttonText.c_str() + skipTextOffset);
|
||||
gPrint(Common::Point(xStart + prefixOffsetX, pt.y), COMMAND_HIGHLIGHTED, "%c", hotkey);
|
||||
if (textContainsHotkey)
|
||||
gPrint(Common::Point(xStart + prefixOffsetX, pt.y), COMMAND_HIGHLIGHTED, "%c", hotkey);
|
||||
}
|
||||
} else if (slamIt) {
|
||||
print(Common::Point(xStart, pt.y + 1), color, "%s", buttonText.c_str() + skipTextOffset);
|
||||
|
Loading…
x
Reference in New Issue
Block a user