aboutsummaryrefslogtreecommitdiff
path: root/engines/avalanche/graphics.cpp
diff options
context:
space:
mode:
authoruruk2013-09-21 14:25:54 +0200
committeruruk2013-09-21 14:25:54 +0200
commit3b57efaf992b3dccbf60b0f94004c587b93fec32 (patch)
tree6c50b4b8ebd81f0f72f3b2802bf6d50cb9462f04 /engines/avalanche/graphics.cpp
parent2dcdca571192faebdc1799461fe907fad7087ef3 (diff)
downloadscummvm-rg350-3b57efaf992b3dccbf60b0f94004c587b93fec32.tar.gz
scummvm-rg350-3b57efaf992b3dccbf60b0f94004c587b93fec32.tar.bz2
scummvm-rg350-3b57efaf992b3dccbf60b0f94004c587b93fec32.zip
AVALANCHE: Revise Graphics::drawPicture().
Diffstat (limited to 'engines/avalanche/graphics.cpp')
-rw-r--r--engines/avalanche/graphics.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/avalanche/graphics.cpp b/engines/avalanche/graphics.cpp
index aa363bb0a2..643025fec7 100644
--- a/engines/avalanche/graphics.cpp
+++ b/engines/avalanche/graphics.cpp
@@ -290,11 +290,11 @@ void Graphics::drawSprite(const SpriteInfo &sprite, byte picnum, int16 x, int16
}
}
-void Graphics::drawPicture(::Graphics::Surface &target, ::Graphics::Surface &picture, uint16 destX, uint16 destY) {
+void Graphics::drawPicture(::Graphics::Surface &target, const ::Graphics::Surface &picture, uint16 destX, uint16 destY) {
// Copy the picture to the given place on the screen.
for (uint16 y = 0; y < picture.h; y++) {
for (uint16 x = 0; x < picture.w; x++)
- *(byte *)target.getBasePtr(x + destX, y + destY) = *(byte *)picture.getBasePtr(x, y);
+ *(byte *)target.getBasePtr(x + destX, y + destY) = *(const byte *)picture.getBasePtr(x, y);
}
}