aboutsummaryrefslogtreecommitdiff
path: root/engines/kyra/gui_lok.cpp
diff options
context:
space:
mode:
authorJohannes Schickel2009-10-11 12:51:13 +0000
committerJohannes Schickel2009-10-11 12:51:13 +0000
commitf4288516e80ec64aa262ccd8fcf61b1f8ce3fa09 (patch)
tree0f58fc2296e9915b93878763b32a443b6b519928 /engines/kyra/gui_lok.cpp
parent7755404f52b022d52d9c6bb0120973acb50d2bd6 (diff)
downloadscummvm-rg350-f4288516e80ec64aa262ccd8fcf61b1f8ce3fa09.tar.gz
scummvm-rg350-f4288516e80ec64aa262ccd8fcf61b1f8ce3fa09.tar.bz2
scummvm-rg350-f4288516e80ec64aa262ccd8fcf61b1f8ce3fa09.zip
Revert commits r44912 and r44905, seems like the original FM-Towns/PC98 games did only allow ASCII input, thus they didn't use the SJIS font in the save/load menus.
svn-id: r44916
Diffstat (limited to 'engines/kyra/gui_lok.cpp')
-rw-r--r--engines/kyra/gui_lok.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/engines/kyra/gui_lok.cpp b/engines/kyra/gui_lok.cpp
index 8e47a47d92..a7646fcd96 100644
--- a/engines/kyra/gui_lok.cpp
+++ b/engines/kyra/gui_lok.cpp
@@ -682,15 +682,17 @@ int GUI_LoK::loadGameMenu(Button *button) {
}
void GUI_LoK::redrawTextfield() {
+ Screen::FontId of = _screen->setFont(Screen::FID_8_FNT);
_screen->fillRect(38, 91, 287, 102, _vm->gameFlags().platform == Common::kPlatformAmiga ? 18 : 250);
_text->printText(_savegameName, 38, 92, 253, 0, 0);
-
+
_screen->_charWidth = -2;
int width = _screen->getTextWidth(_savegameName);
_screen->fillRect(39 + width, 93, 45 + width, 100, _vm->gameFlags().platform == Common::kPlatformAmiga ? 31 : 254);
_screen->_charWidth = 0;
_screen->updateScreen();
+ _screen->setFont(of);
}
void GUI_LoK::updateSavegameString() {
@@ -749,7 +751,7 @@ int GUI_LoK::saveGame(Button *button) {
}
redrawTextfield();
- while (_displaySubMenu && !_vm->shouldQuit()) {
+ while (_displaySubMenu && !_vm->shouldQuit()) {
checkTextfieldInput();
updateSavegameString();
processHighlights(_menu[3]);