aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorFlorian Kagerer2009-10-10 12:29:36 +0000
committerFlorian Kagerer2009-10-10 12:29:36 +0000
commit3e259dea30f02e90b891801b27bdedb44f66a06f (patch)
tree0b1a92136063b2f11b118515968f5bd19524fbe2 /engines
parent3aa8699874dfd5d053bb66b9e59c9036ba6b5c0a (diff)
downloadscummvm-rg350-3e259dea30f02e90b891801b27bdedb44f66a06f.tar.gz
scummvm-rg350-3e259dea30f02e90b891801b27bdedb44f66a06f.tar.bz2
scummvm-rg350-3e259dea30f02e90b891801b27bdedb44f66a06f.zip
LOL/PC-98: fixed two minor bugs
svn-id: r44870
Diffstat (limited to 'engines')
-rw-r--r--engines/kyra/screen.cpp2
-rw-r--r--engines/kyra/screen.h2
-rw-r--r--engines/kyra/script_tim.cpp7
3 files changed, 3 insertions, 8 deletions
diff --git a/engines/kyra/screen.cpp b/engines/kyra/screen.cpp
index fde7b5718d..0385fce913 100644
--- a/engines/kyra/screen.cpp
+++ b/engines/kyra/screen.cpp
@@ -3048,7 +3048,7 @@ byte *Screen::getOverlayPtr(int page) {
if (page == 6 || page == 7)
return _sjisOverlayPtrs[4];
if (page == 12 || page == 13)
- return _sjisOverlayPtrs[3];
+ return _sjisOverlayPtrs[5];
}
return 0;
diff --git a/engines/kyra/screen.h b/engines/kyra/screen.h
index 0e8ffada86..01bd9d5da0 100644
--- a/engines/kyra/screen.h
+++ b/engines/kyra/screen.h
@@ -305,7 +305,7 @@ public:
SCREEN_PAGE_SIZE = 320 * 200 + 1024,
SCREEN_OVL_SJIS_SIZE = 640 * 400,
SCREEN_PAGE_NUM = 16,
- SCREEN_OVLS_NUM = 5
+ SCREEN_OVLS_NUM = 6
};
enum CopyRegionFlags {
diff --git a/engines/kyra/script_tim.cpp b/engines/kyra/script_tim.cpp
index 3f34fb6f09..e4e1c01f6b 100644
--- a/engines/kyra/script_tim.cpp
+++ b/engines/kyra/script_tim.cpp
@@ -1168,18 +1168,16 @@ int TIMInterpreter_LoL::resetAnimationLastPart(int animIndex) {
void TIMInterpreter_LoL::drawDialogueButtons() {
int cp = _screen->setCurPage(0);
- Screen::FontId of;
+ Screen::FontId of = _screen->setFont(_vm->gameFlags().use16ColorMode ? Screen::FID_SJIS_FNT : Screen::FID_6_FNT);
int x = _dialogueButtonPosX;
for (int i = 0; i < _dialogueNumButtons; i++) {
if (_vm->gameFlags().use16ColorMode) {
- of = _screen->setFont(Screen::FID_SJIS_FNT);
_vm->gui_drawBox(x, (_dialogueButtonPosY & ~7) - 1, 74, 10, 0xee, 0xcc, -1);
_screen->printText(_dialogueButtonString[i], (x + 37 - (_screen->getTextWidth(_dialogueButtonString[i])) / 2) & ~3,
(_dialogueButtonPosY + 2) & ~7, _dialogueHighlightedButton == i ? 0xc1 : 0xe1, 0);
} else {
- of = _screen->setFont(Screen::FID_6_FNT);
_vm->gui_drawBox(x, _dialogueButtonPosY, 74, 9, 136, 251, -1);
_screen->printText(_dialogueButtonString[i], x + 37 - (_screen->getTextWidth(_dialogueButtonString[i])) / 2,
_dialogueButtonPosY + 2, _dialogueHighlightedButton == i ? 144 : 254, 0);
@@ -1215,18 +1213,15 @@ uint16 TIMInterpreter_LoL::processDialogue() {
if (e == 43 || e == 61) {
_vm->snd_stopSpeech(true);
- //_dlgTimer = 0;
}
}
if (_vm->snd_updateCharacterSpeech() != 2) {
- //if (_dlgTimer < _system->getMillis()) {
res = 1;
if (!_vm->shouldQuit()) {
_vm->removeInputTop();
_vm->gui_notifyButtonListChanged();
}
- //}
}
} else {
int e = _vm->checkInput(0, false) & 0xFF;