aboutsummaryrefslogtreecommitdiff
path: root/engines/parallaction
diff options
context:
space:
mode:
authorJohannes Schickel2013-01-06 20:33:34 +0100
committerJohannes Schickel2013-01-06 20:34:26 +0100
commit98cfb57dd3602e96248e0fae47a8e9250dad7a08 (patch)
tree388591349ed11167b96071faba83c5adcb34027b /engines/parallaction
parent988596b347c7508b83f30e336add33047b49dd5f (diff)
downloadscummvm-rg350-98cfb57dd3602e96248e0fae47a8e9250dad7a08.tar.gz
scummvm-rg350-98cfb57dd3602e96248e0fae47a8e9250dad7a08.tar.bz2
scummvm-rg350-98cfb57dd3602e96248e0fae47a8e9250dad7a08.zip
PARALLACTION: Fix a const cast warning.
Diffstat (limited to 'engines/parallaction')
-rw-r--r--engines/parallaction/disk_br.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/parallaction/disk_br.cpp b/engines/parallaction/disk_br.cpp
index efddfb9935..3135c3e8c5 100644
--- a/engines/parallaction/disk_br.cpp
+++ b/engines/parallaction/disk_br.cpp
@@ -728,7 +728,7 @@ GfxObj* AmigaDisk_br::loadObjects(const char *name, uint8 part) {
max = 72;
byte *data = new byte[max * 2601];
- byte *srcPtr = (byte *)decoder.getSurface()->getBasePtr(0,0);
+ const byte *srcPtr = (const byte *)decoder.getSurface()->getBasePtr(0,0);
int w = decoder.getSurface()->w;
// Convert to the expected display format
@@ -736,7 +736,7 @@ GfxObj* AmigaDisk_br::loadObjects(const char *name, uint8 part) {
uint16 x = (i % 8) * 51;
uint16 y = (i / 8) * 51;
- byte *src = srcPtr + y * w + x;
+ const byte *src = srcPtr + y * w + x;
byte *dst = data + i * 2601;
for (int h = 0; h < 51; h++) {
memcpy(dst, src, 51);