mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-25 12:05:53 +00:00
CHEWY: Bugfix for drawImage()
This commit is contained in:
parent
98e838275f
commit
3a5cd65d6d
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user