aboutsummaryrefslogtreecommitdiff
path: root/engines/scumm/base-costume.cpp
diff options
context:
space:
mode:
authorJohannes Schickel2013-08-04 02:32:12 +0200
committerJohannes Schickel2013-08-04 02:41:40 +0200
commita96a427fc84312f7cb7fef45b992a1e9e3f93f93 (patch)
tree1e948a06e588f8fef8a60d717005e185b026d766 /engines/scumm/base-costume.cpp
parent6485b291e9080acbd2e3d29a1bbaf7da9e79568d (diff)
downloadscummvm-rg350-a96a427fc84312f7cb7fef45b992a1e9e3f93f93.tar.gz
scummvm-rg350-a96a427fc84312f7cb7fef45b992a1e9e3f93f93.tar.bz2
scummvm-rg350-a96a427fc84312f7cb7fef45b992a1e9e3f93f93.zip
SCUMM: Add comment about getPixels uses in BaseCostumeRenderer.
Diffstat (limited to 'engines/scumm/base-costume.cpp')
-rw-r--r--engines/scumm/base-costume.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/engines/scumm/base-costume.cpp b/engines/scumm/base-costume.cpp
index b87bc77c29..e1a8688bb9 100644
--- a/engines/scumm/base-costume.cpp
+++ b/engines/scumm/base-costume.cpp
@@ -38,6 +38,8 @@ byte BaseCostumeRenderer::drawCostume(const VirtScreen &vs, int numStrips, const
_actorX += _vm->_virtscr[kMainVirtScreen].xstart & 7;
_out.w = _out.pitch / _vm->_bytesPerPixel;
+ // We do not use getBasePtr here because the offset to pixels never used
+ // _vm->_bytesPerPixel, but it seems unclear why.
_out.setPixels((byte *)_out.getPixels() - (_vm->_virtscr[kMainVirtScreen].xstart & 7));
_numStrips = numStrips;