aboutsummaryrefslogtreecommitdiff
path: root/engines/kyra
diff options
context:
space:
mode:
authorathrxx2018-11-03 00:03:32 +0100
committerathrxx2018-11-14 17:22:22 +0100
commit4cce54efee1779d4374a6e218649e186408f6816 (patch)
tree60da766d3c3ecbd7f4cb7e17723e8588df213437 /engines/kyra
parentf49eaa5654b2ee2e41b1794a4576d24967e2f7d7 (diff)
downloadscummvm-rg350-4cce54efee1779d4374a6e218649e186408f6816.tar.gz
scummvm-rg350-4cce54efee1779d4374a6e218649e186408f6816.tar.bz2
scummvm-rg350-4cce54efee1779d4374a6e218649e186408f6816.zip
KYRA: (EOB) - fix load menu graphics glitch
Cut off long save slot descriptions from the GMM save dialogue when they're displayed in the original load menu.
Diffstat (limited to 'engines/kyra')
-rw-r--r--engines/kyra/gui_eob.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/engines/kyra/gui_eob.cpp b/engines/kyra/gui_eob.cpp
index 1e4fc4388e..4b1002175b 100644
--- a/engines/kyra/gui_eob.cpp
+++ b/engines/kyra/gui_eob.cpp
@@ -4102,8 +4102,9 @@ void GUI_EoB::drawSaveSlotButton(int slot, int redrawBox, int textCol) {
int x = _saveSlotX + 4;
int y = _saveSlotY + slot * 17 + 20;
int w = 167;
- const char *s = (slot < 6) ? _saveSlotStringsTemp[slot] : _vm->_saveLoadStrings[0];
-
+ char slotString[26];
+ Common::strlcpy(slotString, slot < 6 ? _saveSlotStringsTemp[slot] : _vm->_saveLoadStrings[0], _vm->gameFlags().platform == Common::kPlatformFMTowns ? 25 : 20);
+
if (slot >= 6) {
x = _saveSlotX + 118;
y = _saveSlotY + 126;
@@ -4119,7 +4120,7 @@ void GUI_EoB::drawSaveSlotButton(int slot, int redrawBox, int textCol) {
y++;
}
- _screen->printShadedText(s, x + 4, y + 3, textCol, 0);
+ _screen->printShadedText(slotString, x + 4, y + 3, textCol, 0);
_vm->screen()->setFont(fnt);
}