diff options
author | Paweł Kołodziejski | 2002-09-01 15:01:40 +0000 |
---|---|---|
committer | Paweł Kołodziejski | 2002-09-01 15:01:40 +0000 |
commit | daa997fab248b92c81f9299ae0fcc857f69ca754 (patch) | |
tree | 98bc55cd8aaa109cc7c438017f4692d1fa0b52d9 /scumm/script.cpp | |
parent | a2ab750f88fbbd34decdcbae50a9454075ccdcb0 (diff) | |
download | scummvm-rg350-daa997fab248b92c81f9299ae0fcc857f69ca754.tar.gz scummvm-rg350-daa997fab248b92c81f9299ae0fcc857f69ca754.tar.bz2 scummvm-rg350-daa997fab248b92c81f9299ae0fcc857f69ca754.zip |
fixes to resolutions
svn-id: r4893
Diffstat (limited to 'scumm/script.cpp')
-rw-r--r-- | scumm/script.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/scumm/script.cpp b/scumm/script.cpp index d5fd2458d3..7440e783a0 100644 --- a/scumm/script.cpp +++ b/scumm/script.cpp @@ -479,25 +479,25 @@ void Scumm::drawBox(int x, int y, int x2, int y2, int color) y = 0; if (x2 < 0) return; - if (x2 > 320) - x2 = 320; + if (x2 > _realWidth) + x2 = _realWidth; if (y2 > bottom) y2 = bottom; updateDirtyRect(vs->number, x, x2, y - top, y2 - top, 0); - backbuff = vs->screenPtr + vs->xstart + (y - top) * 320 + x; + backbuff = vs->screenPtr + vs->xstart + (y - top) * _realWidth + x; if (color == -1) { if (vs->number != 0) error("can only copy bg to main window"); - bgbuff = getResourceAddress(rtBuffer, vs->number + 5) + vs->xstart + (y - top) * 320 + x; + bgbuff = getResourceAddress(rtBuffer, vs->number + 5) + vs->xstart + (y - top) * _realWidth + x; blit(backbuff, bgbuff, x2 - x, y2 - y); } else { count = y2 - y; while (count) { memset(backbuff, color, x2 - x); - backbuff += 320; + backbuff += _realWidth; count--; } } |