mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-14 13:50:13 +00:00
Fix regression due to sign issue, which could cause crashes.
svn-id: r26758
This commit is contained in:
parent
79229cafab
commit
0da4791128
@ -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);
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user