mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-19 08:25:35 +00:00
Added stubs for the missing visual effect opcodes
svn-id: r35512
This commit is contained in:
parent
a150aea638
commit
51c22d9905
@ -92,6 +92,10 @@ void ScreenEffects::run(int16 effectNum, Graphics::Surface *surface, byte *palet
|
||||
vfx07(surface, palette, newPalette, colorCount);
|
||||
break;
|
||||
|
||||
case 8:
|
||||
vfx08(surface, palette, newPalette, colorCount);
|
||||
break;
|
||||
|
||||
case 9: // "Checkerboard" effect
|
||||
vfx09(surface, palette, newPalette, colorCount);
|
||||
break;
|
||||
@ -128,6 +132,18 @@ void ScreenEffects::run(int16 effectNum, Graphics::Surface *surface, byte *palet
|
||||
vfx17(surface, palette, newPalette, colorCount);
|
||||
break;
|
||||
|
||||
case 18:
|
||||
vfx18(surface, palette, newPalette, colorCount);
|
||||
break;
|
||||
|
||||
case 19:
|
||||
vfx19(surface, palette, newPalette, colorCount);
|
||||
break;
|
||||
|
||||
case 20:
|
||||
vfx20(surface, palette, newPalette, colorCount);
|
||||
break;
|
||||
|
||||
default:
|
||||
vfx00(surface, palette, newPalette, colorCount);
|
||||
warning("Unimplemented visual effect %d", effectNum);
|
||||
@ -327,6 +343,12 @@ void ScreenEffects::vfx07(Graphics::Surface *surface, byte *palette, byte *newPa
|
||||
setPalette(palette);
|
||||
}
|
||||
|
||||
void ScreenEffects::vfx08(Graphics::Surface *surface, byte *palette, byte *newPalette, int colorCount) {
|
||||
// TODO
|
||||
warning("Unimplemented visual effect: 8");
|
||||
vfx00(surface, palette, newPalette, colorCount);
|
||||
}
|
||||
|
||||
// "Checkerboard" effect
|
||||
void ScreenEffects::vfx09(Graphics::Surface *surface, byte *palette, byte *newPalette, int colorCount) {
|
||||
for (int i = 0; i < 8; i++) {
|
||||
@ -448,5 +470,22 @@ void ScreenEffects::vfx17(Graphics::Surface *surface, byte *palette, byte *newPa
|
||||
|
||||
}
|
||||
|
||||
void ScreenEffects::vfx18(Graphics::Surface *surface, byte *palette, byte *newPalette, int colorCount) {
|
||||
// TODO
|
||||
warning("Unimplemented visual effect: 18");
|
||||
vfx00(surface, palette, newPalette, colorCount);
|
||||
}
|
||||
|
||||
void ScreenEffects::vfx19(Graphics::Surface *surface, byte *palette, byte *newPalette, int colorCount) {
|
||||
// TODO
|
||||
warning("Unimplemented visual effect: 19");
|
||||
vfx00(surface, palette, newPalette, colorCount);
|
||||
}
|
||||
|
||||
void ScreenEffects::vfx20(Graphics::Surface *surface, byte *palette, byte *newPalette, int colorCount) {
|
||||
// TODO
|
||||
warning("Unimplemented visual effect: 20");
|
||||
vfx00(surface, palette, newPalette, colorCount);
|
||||
}
|
||||
|
||||
} // End of namespace Made
|
||||
|
@ -53,6 +53,7 @@ private:
|
||||
void setBlendedPalette(byte *palette, byte *newPalette, int colorCount, int16 value, int16 maxValue);
|
||||
void copyFxRect(Graphics::Surface *surface, int16 x1, int16 y1, int16 x2, int16 y2);
|
||||
void copyRect(Graphics::Surface *surface, int16 x1, int16 y1, int16 x2, int16 y2);
|
||||
|
||||
void vfx00(Graphics::Surface *surface, byte *palette, byte *newPalette, int colorCount);
|
||||
void vfx01(Graphics::Surface *surface, byte *palette, byte *newPalette, int colorCount);
|
||||
void vfx02(Graphics::Surface *surface, byte *palette, byte *newPalette, int colorCount);
|
||||
@ -61,6 +62,7 @@ private:
|
||||
void vfx05(Graphics::Surface *surface, byte *palette, byte *newPalette, int colorCount);
|
||||
void vfx06(Graphics::Surface *surface, byte *palette, byte *newPalette, int colorCount);
|
||||
void vfx07(Graphics::Surface *surface, byte *palette, byte *newPalette, int colorCount);
|
||||
void vfx08(Graphics::Surface *surface, byte *palette, byte *newPalette, int colorCount);
|
||||
void vfx09(Graphics::Surface *surface, byte *palette, byte *newPalette, int colorCount);
|
||||
void vfx10(Graphics::Surface *surface, byte *palette, byte *newPalette, int colorCount);
|
||||
void vfx11(Graphics::Surface *surface, byte *palette, byte *newPalette, int colorCount);
|
||||
@ -70,6 +72,9 @@ private:
|
||||
void vfx15(Graphics::Surface *surface, byte *palette, byte *newPalette, int colorCount);
|
||||
void vfx16(Graphics::Surface *surface, byte *palette, byte *newPalette, int colorCount);
|
||||
void vfx17(Graphics::Surface *surface, byte *palette, byte *newPalette, int colorCount);
|
||||
void vfx18(Graphics::Surface *surface, byte *palette, byte *newPalette, int colorCount);
|
||||
void vfx19(Graphics::Surface *surface, byte *palette, byte *newPalette, int colorCount);
|
||||
void vfx20(Graphics::Surface *surface, byte *palette, byte *newPalette, int colorCount);
|
||||
};
|
||||
|
||||
} // End of namespace Made
|
||||
|
Loading…
x
Reference in New Issue
Block a user