aboutsummaryrefslogtreecommitdiff
path: root/engines/scumm/script_c64.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/scumm/script_c64.cpp')
-rw-r--r--engines/scumm/script_c64.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/scumm/script_c64.cpp b/engines/scumm/script_c64.cpp
index 5b2b3f3a63..72bfd94115 100644
--- a/engines/scumm/script_c64.cpp
+++ b/engines/scumm/script_c64.cpp
@@ -416,7 +416,7 @@ void ScummEngine_c64::decodeParseString() {
int textSlot = 0;
_string[textSlot].xpos = 0;
_string[textSlot].ypos = 0;
- _string[textSlot].right = 320;
+ _string[textSlot].right = _screenWidth - 1;
_string[textSlot].center = false;
_string[textSlot].overhead = false;
@@ -555,7 +555,7 @@ void ScummEngine_c64::drawSentence() {
sentenceline.top = virtscr[kVerbVirtScreen].topline;
sentenceline.bottom = virtscr[kVerbVirtScreen].topline + 8;
sentenceline.left = 0;
- sentenceline.right = 319;
+ sentenceline.right = virtscr[kVerbVirtScreen].w - 1;
restoreBG(sentenceline);
drawString(2, (byte*)string);