diff options
author | Johannes Schickel | 2012-04-05 00:36:05 +0200 |
---|---|---|
committer | Johannes Schickel | 2012-04-05 00:40:30 +0200 |
commit | f7d2cd73314b11dd7883da9c3802d34c4253fcaa (patch) | |
tree | e53ffe816c431415bf34e067946f678cf315e067 /engines/groovie | |
parent | 0e17497110ad9ff3e9def3e2f74aee7b33bd6e33 (diff) | |
download | scummvm-rg350-f7d2cd73314b11dd7883da9c3802d34c4253fcaa.tar.gz scummvm-rg350-f7d2cd73314b11dd7883da9c3802d34c4253fcaa.tar.bz2 scummvm-rg350-f7d2cd73314b11dd7883da9c3802d34c4253fcaa.zip |
GROOVIE: Do not cast away const qualifier.
Diffstat (limited to 'engines/groovie')
-rw-r--r-- | engines/groovie/roq.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/groovie/roq.cpp b/engines/groovie/roq.cpp index 8da8671b5d..baf42a7679 100644 --- a/engines/groovie/roq.cpp +++ b/engines/groovie/roq.cpp @@ -437,9 +437,9 @@ bool ROQPlayer::processBlockStill(ROQBlockHeader &blockHeader) { Graphics::JPEGDecoder *jpg = new Graphics::JPEGDecoder(); jpg->loadStream(*_file); - byte *y = (byte *)jpg->getComponent(1)->getBasePtr(0, 0); - byte *u = (byte *)jpg->getComponent(2)->getBasePtr(0, 0); - byte *v = (byte *)jpg->getComponent(3)->getBasePtr(0, 0); + const byte *y = (const byte *)jpg->getComponent(1)->getBasePtr(0, 0); + const byte *u = (const byte *)jpg->getComponent(2)->getBasePtr(0, 0); + const byte *v = (const byte *)jpg->getComponent(3)->getBasePtr(0, 0); byte *ptr = (byte *)_currBuf->getBasePtr(0, 0); for (int i = 0; i < _currBuf->w * _currBuf->h; i++) { |