diff options
-rw-r--r-- | engines/agos/agos.h | 2 | ||||
-rw-r--r-- | engines/agos/vga.cpp | 5 |
2 files changed, 4 insertions, 3 deletions
diff --git a/engines/agos/agos.h b/engines/agos/agos.h index c6a643d721..1c8542f60a 100644 --- a/engines/agos/agos.h +++ b/engines/agos/agos.h @@ -1037,7 +1037,7 @@ public: protected: bool drawImage_clip(VC10_state *state); - void drawImage_init(uint16 image, uint16 palette, uint16 x, uint16 y, uint16 flags); + void drawImage_init(int16 image, uint16 palette, uint16 x, uint16 y, uint16 flags); void drawImage(VC10_state *state); void drawImage_Amiga(VC10_state *state); diff --git a/engines/agos/vga.cpp b/engines/agos/vga.cpp index e0bd4f2e13..fafce61791 100644 --- a/engines/agos/vga.cpp +++ b/engines/agos/vga.cpp @@ -568,7 +568,8 @@ byte *AGOSEngine::vc10_flip(const byte *src, uint w, uint h) { } void AGOSEngine::vc10_draw() { - uint16 image, palette, x, y, flags; + uint16 palette, x, y, flags; + int16 image; image = (int16)vcReadNextWord(); @@ -593,7 +594,7 @@ void AGOSEngine::vc10_draw() { drawImage_init(image, palette, x, y, flags); } -void AGOSEngine::drawImage_init(uint16 image, uint16 palette, uint16 x, uint16 y, uint16 flags) { +void AGOSEngine::drawImage_init(int16 image, uint16 palette, uint16 x, uint16 y, uint16 flags) { if (image == 0) return; |