aboutsummaryrefslogtreecommitdiff
path: root/engines/scumm/debugger.cpp
diff options
context:
space:
mode:
authorJohannes Schickel2013-08-04 02:29:13 +0200
committerJohannes Schickel2013-08-04 02:29:13 +0200
commit6485b291e9080acbd2e3d29a1bbaf7da9e79568d (patch)
tree0abf179fbf7ed1bbdc1e8ab613811ce5e5ae5ecd /engines/scumm/debugger.cpp
parent8fc54d6d77d36c18c22272e2dc3d70414f195e0c (diff)
downloadscummvm-rg350-6485b291e9080acbd2e3d29a1bbaf7da9e79568d.tar.gz
scummvm-rg350-6485b291e9080acbd2e3d29a1bbaf7da9e79568d.tar.bz2
scummvm-rg350-6485b291e9080acbd2e3d29a1bbaf7da9e79568d.zip
SCUMM: Fix Loom (and some other graphics regressions).
These are regressions from c05cb7f3bbcf4d64d4a938e0eb42065d8f3d3038. They were caused by VirtualScreen::getPixels differing from Surface::getBasePtr and I accidently used the former in some cases in the conversion. I also fixed a bug in debugger.cpp which exchanged x and y.
Diffstat (limited to 'engines/scumm/debugger.cpp')
-rw-r--r--engines/scumm/debugger.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/scumm/debugger.cpp b/engines/scumm/debugger.cpp
index 5e5719d6bc..872293f821 100644
--- a/engines/scumm/debugger.cpp
+++ b/engines/scumm/debugger.cpp
@@ -641,7 +641,7 @@ static void hlineColor(ScummEngine *scumm, int x1, int x2, int y, byte color) {
x2 = right - 1;
- ptr = (byte *)vs->getBasePtr(y, x1);
+ ptr = (byte *)vs->getBasePtr(x1, y);
while (x1++ <= x2) {
*ptr++ = color;