diff options
author | Johannes Schickel | 2013-08-02 22:23:00 +0200 |
---|---|---|
committer | Johannes Schickel | 2013-08-03 02:52:31 +0200 |
commit | c05cb7f3bbcf4d64d4a938e0eb42065d8f3d3038 (patch) | |
tree | 1a2b4f8a216de2f2f742a9c9ef68b46c51603883 /engines/scumm/cursor.cpp | |
parent | 4790a4abd5c157254cab069bc34aa8ef8347f668 (diff) | |
download | scummvm-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/cursor.cpp')
-rw-r--r-- | engines/scumm/cursor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/scumm/cursor.cpp b/engines/scumm/cursor.cpp index 269ae9e10a..3eb7246b3a 100644 --- a/engines/scumm/cursor.cpp +++ b/engines/scumm/cursor.cpp @@ -139,7 +139,7 @@ void ScummEngine_v6::grabCursor(int x, int y, int w, int h) { return; } - setCursorFromBuffer((byte *)vs->pixels + (y - vs->topline) * vs->pitch + x, w, h, vs->pitch); + setCursorFromBuffer((byte *)vs->getBasePtr(x, y - vs->topline), w, h, vs->pitch); } void ScummEngine_v6::setDefaultCursor() { |