From c1cbba1d652f694ef95996cfd574f6182c08eb28 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Ko=C5=82odziejski?= Date: Sat, 31 Aug 2002 18:57:08 +0000 Subject: [PATCH] more fixes svn-id: r4888 --- scumm/gfx.cpp | 4 ++-- scumm/string.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/scumm/gfx.cpp b/scumm/gfx.cpp index 1c86df458b3..7e6afc83640 100644 --- a/scumm/gfx.cpp +++ b/scumm/gfx.cpp @@ -244,8 +244,8 @@ void blit(byte *dst, byte *src, int w, int h) do { memcpy(dst, src, w); - dst += 320; - src += 320; + dst += _vm->_realWidth; + src += _vm->_realWidth; } while (--h); } diff --git a/scumm/string.cpp b/scumm/string.cpp index 2509811e32a..140094b31d3 100644 --- a/scumm/string.cpp +++ b/scumm/string.cpp @@ -219,7 +219,7 @@ void Scumm::CHARSET_1() if (a && string[0].overhead != 0) { if (!(_features & GF_AFTER_V6)) { - string[0].xpos = a->x - camera._cur.x + 160; + string[0].xpos = a->x - camera._cur.x + (_vm->_realWidth / 2); if (_vars[VAR_V5_TALK_STRING_Y] < 0) { s = (a->scaley * (int)_vars[VAR_V5_TALK_STRING_Y]) / 0xFF; @@ -451,7 +451,7 @@ void Scumm::description() buffer = charset._buffer + charset._bufPos; string[0].ypos = camera._cur.y + 88; - string[0].xpos = 160 - (charset.getStringWidth(0, buffer, 0) >> 1); + string[0].xpos = (_vm->_realWidth / 2) - (charset.getStringWidth(0, buffer, 0) >> 1); if (string[0].xpos < 0) string[0].xpos = 0;