aboutsummaryrefslogtreecommitdiff
path: root/saga/animation.cpp
diff options
context:
space:
mode:
authorTorbjörn Andersson2005-09-27 17:00:32 +0000
committerTorbjörn Andersson2005-09-27 17:00:32 +0000
commit1da2d2662b97659eafa2ab6be8730062a86fbaea (patch)
tree7289869435fd9990dd1da5dda3b6926d91f1525e /saga/animation.cpp
parentab3ddb787307a62095fc58546f511d0ef6680afa (diff)
downloadscummvm-rg350-1da2d2662b97659eafa2ab6be8730062a86fbaea.tar.gz
scummvm-rg350-1da2d2662b97659eafa2ab6be8730062a86fbaea.tar.bz2
scummvm-rg350-1da2d2662b97659eafa2ab6be8730062a86fbaea.zip
This seems a bit awkward, but does keep GCC from warning about discarding
constness. svn-id: r18888
Diffstat (limited to 'saga/animation.cpp')
-rw-r--r--saga/animation.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/saga/animation.cpp b/saga/animation.cpp
index d8230ee885..7194975ab2 100644
--- a/saga/animation.cpp
+++ b/saga/animation.cpp
@@ -108,13 +108,13 @@ void Anim::playCutaway(int cut, bool fade) {
_vm->decodeBGImage(resourceData, resourceDataLength, &buf, &buflen, &width, &height);
- PalEntry *palette = (PalEntry *)_vm->getImagePal(resourceData, resourceDataLength);
+ const PalEntry *palette = (const PalEntry *)_vm->getImagePal(resourceData, resourceDataLength);
Surface *bgSurface = _vm->_render->getBackGroundSurface();
const Rect rect(width, height);
bgSurface->blit(rect, buf);
- _vm->_gfx->setPalette(palette);
+ _vm->_gfx->setPalette(const_cast<PalEntry *>(palette));
free(buf);
free(resourceData);