diff options
author | Filippos Karapetis | 2008-05-17 10:17:35 +0000 |
---|---|---|
committer | Filippos Karapetis | 2008-05-17 10:17:35 +0000 |
commit | 2ceb1b257767b1ab7cc4bb1a3799ef25f6786eb1 (patch) | |
tree | 7360d39ddbf2ee7a9a53501b79bd82a5561f8b09 /engines | |
parent | 66ecacc7c388d268d2ecf04c3b6cbf4face5a164 (diff) | |
download | scummvm-rg350-2ceb1b257767b1ab7cc4bb1a3799ef25f6786eb1.tar.gz scummvm-rg350-2ceb1b257767b1ab7cc4bb1a3799ef25f6786eb1.tar.bz2 scummvm-rg350-2ceb1b257767b1ab7cc4bb1a3799ef25f6786eb1.zip |
Documented screen effects
svn-id: r32148
Diffstat (limited to 'engines')
-rw-r--r-- | engines/made/screenfx.cpp | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/engines/made/screenfx.cpp b/engines/made/screenfx.cpp index feea365615..532ac806e3 100644 --- a/engines/made/screenfx.cpp +++ b/engines/made/screenfx.cpp @@ -60,19 +60,19 @@ void ScreenEffects::run(int16 effectNum, Graphics::Surface *surface, byte *palet switch (effectNum) { - case 0: + case 0: // No effect vfx00(surface, palette, newPalette, colorCount); break; - case 9: + case 9: // "Checkerboard" effect vfx09(surface, palette, newPalette, colorCount); break; - case 14: + case 14: // "Screen open" effect vfx14(surface, palette, newPalette, colorCount); break; - case 17: + case 17: // Palette fadeout/fadein vfx17(surface, palette, newPalette, colorCount); break; @@ -189,11 +189,13 @@ void ScreenEffects::copyRect(Graphics::Surface *surface, int16 x1, int16 y1, int } +// No effect void ScreenEffects::vfx00(Graphics::Surface *surface, byte *palette, byte *newPalette, int colorCount) { setPalette(palette); _screen->showWorkScreen(); } +// "Checkerboard" effect void ScreenEffects::vfx09(Graphics::Surface *surface, byte *palette, byte *newPalette, int colorCount) { for (int i = 0; i < 8; i++) { copyRect(surface, 0, 0, 320, 200); @@ -205,6 +207,7 @@ void ScreenEffects::vfx09(Graphics::Surface *surface, byte *palette, byte *newPa setPalette(palette); } +// "Screen open" effect void ScreenEffects::vfx14(Graphics::Surface *surface, byte *palette, byte *newPalette, int colorCount) { int16 x = 8, y = 5; for (int i = 0; i < 27; i++) { @@ -217,6 +220,7 @@ void ScreenEffects::vfx14(Graphics::Surface *surface, byte *palette, byte *newPa setPalette(palette); } +// Palette fadeout/fadein void ScreenEffects::vfx17(Graphics::Surface *surface, byte *palette, byte *newPalette, int colorCount) { byte tempPalette[768]; |