aboutsummaryrefslogtreecommitdiff
path: root/engines/scumm/debugger.cpp
diff options
context:
space:
mode:
authorJohannes Schickel2013-08-02 22:23:00 +0200
committerJohannes Schickel2013-08-03 02:52:31 +0200
commitc05cb7f3bbcf4d64d4a938e0eb42065d8f3d3038 (patch)
tree1a2b4f8a216de2f2f742a9c9ef68b46c51603883 /engines/scumm/debugger.cpp
parent4790a4abd5c157254cab069bc34aa8ef8347f668 (diff)
downloadscummvm-rg350-c05cb7f3bbcf4d64d4a938e0eb42065d8f3d3038.tar.gz
scummvm-rg350-c05cb7f3bbcf4d64d4a938e0eb42065d8f3d3038.tar.bz2
scummvm-rg350-c05cb7f3bbcf4d64d4a938e0eb42065d8f3d3038.zip
SCUMM: Prefer getBasePtr over direct Surface::pixels access.
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 9b6dd1e687..5e5719d6bc 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->pixels + x1 + y * vs->pitch;
+ ptr = (byte *)vs->getBasePtr(y, x1);
while (x1++ <= x2) {
*ptr++ = color;