Fix regression due to sign issue, which could cause crashes.

svn-id: r26758
This commit is contained in:
Travis Howell 2007-05-06 09:35:08 +00:00
parent 79229cafab
commit 0da4791128
2 changed files with 4 additions and 3 deletions

View File

@ -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);

View File

@ -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;