aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFilippos Karapetis2016-09-19 09:49:21 +0300
committerFilippos Karapetis2016-10-03 00:33:04 +0300
commit3a5cd65d6d03c2e2f17656571f8528ef6ea8f039 (patch)
tree770d62cbd26ebd8af77f235501a2b52f339b8f1e
parent98e838275fb6e1b122caa6b9e786db9372bfc195 (diff)
downloadscummvm-rg350-3a5cd65d6d03c2e2f17656571f8528ef6ea8f039.tar.gz
scummvm-rg350-3a5cd65d6d03c2e2f17656571f8528ef6ea8f039.tar.bz2
scummvm-rg350-3a5cd65d6d03c2e2f17656571f8528ef6ea8f039.zip
CHEWY: Bugfix for drawImage()
-rw-r--r--engines/chewy/graphics.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/chewy/graphics.cpp b/engines/chewy/graphics.cpp
index 5127607b01..2369d32600 100644
--- a/engines/chewy/graphics.cpp
+++ b/engines/chewy/graphics.cpp
@@ -30,8 +30,8 @@ namespace Chewy {
void Graphics::drawImage(Common::String filename, int imageNum) {
Resource *res = new Resource("comic.tgp");
- TBFChunk *cur = res->getChunk(0);
- byte *buf = res->getChunkData(0);
+ TBFChunk *cur = res->getChunk(imageNum);
+ byte *buf = res->getChunkData(imageNum);
g_system->getPaletteManager()->setPalette(cur->palette, 0, 256);
g_system->copyRectToScreen(buf, cur->width, 0, 0, cur->width, cur->height);