Skip to content

Commit

Permalink
CHEWY: Bugfix for drawImage()
Browse files Browse the repository at this point in the history
  • Loading branch information
bluegr committed Oct 2, 2016
1 parent 98e8382 commit 3a5cd65
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions engines/chewy/graphics.cpp
Expand Up @@ -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);
Expand Down

0 comments on commit 3a5cd65

Please sign in to comment.