aboutsummaryrefslogtreecommitdiff
path: root/engines/kyra
diff options
context:
space:
mode:
Diffstat (limited to 'engines/kyra')
-rw-r--r--engines/kyra/gui_lok.cpp2
-rw-r--r--engines/kyra/text.cpp2
2 files changed, 0 insertions, 4 deletions
diff --git a/engines/kyra/gui_lok.cpp b/engines/kyra/gui_lok.cpp
index a7646fcd96..c0977225ba 100644
--- a/engines/kyra/gui_lok.cpp
+++ b/engines/kyra/gui_lok.cpp
@@ -682,7 +682,6 @@ 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);
@@ -692,7 +691,6 @@ void GUI_LoK::redrawTextfield() {
_screen->_charWidth = 0;
_screen->updateScreen();
- _screen->setFont(of);
}
void GUI_LoK::updateSavegameString() {
diff --git a/engines/kyra/text.cpp b/engines/kyra/text.cpp
index 1290d7f66d..01ed5ca0e6 100644
--- a/engines/kyra/text.cpp
+++ b/engines/kyra/text.cpp
@@ -149,7 +149,6 @@ int TextDisplayer::buildMessageSubstrings(const char *str) {
int TextDisplayer::getWidestLineWidth(int linesCount) {
int maxWidth = 0;
- Screen::FontId curFont = _screen->setFont(Screen::FID_8_FNT);
_screen->_charWidth = -2;
for (int l = 0; l < linesCount; ++l) {
int w = _screen->getTextWidth(&_talkSubstrings[l * TALK_SUBSTRING_LEN]);
@@ -157,7 +156,6 @@ int TextDisplayer::getWidestLineWidth(int linesCount) {
maxWidth = w;
}
}
- _screen->setFont(curFont);
_screen->_charWidth = 0;
return maxWidth;
}