aboutsummaryrefslogtreecommitdiff
path: root/engines/made/screenfx.cpp
diff options
context:
space:
mode:
authorBenjamin Haisch2009-03-09 18:19:53 +0000
committerBenjamin Haisch2009-03-09 18:19:53 +0000
commitf52557549542d9a3b36c73ca28c02608432ebf5f (patch)
treef9d61a6dc54ece678a3984a546fdfdf3d38f0492 /engines/made/screenfx.cpp
parent72897a4b0993dce0dcdae62c06429e46e0159211 (diff)
downloadscummvm-rg350-f52557549542d9a3b36c73ca28c02608432ebf5f.tar.gz
scummvm-rg350-f52557549542d9a3b36c73ca28c02608432ebf5f.tar.bz2
scummvm-rg350-f52557549542d9a3b36c73ca28c02608432ebf5f.zip
- Applied patch #2668849 by sunmax
svn-id: r39271
Diffstat (limited to 'engines/made/screenfx.cpp')
-rw-r--r--engines/made/screenfx.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/engines/made/screenfx.cpp b/engines/made/screenfx.cpp
index 82864f1daf..02a74374ab 100644
--- a/engines/made/screenfx.cpp
+++ b/engines/made/screenfx.cpp
@@ -51,8 +51,15 @@ ScreenEffects::ScreenEffects(Screen *screen) : _screen(screen) {
vfxY1 = 0;
vfxWidth = 0;
vfxHeight = 0;
+
+ _fxPalette = new byte[768];
+
}
+ScreenEffects::~ScreenEffects() {
+ delete[] _fxPalette;
+}
+
void ScreenEffects::run(int16 effectNum, Graphics::Surface *surface, byte *palette, byte *newPalette, int colorCount) {
// TODO: Put effect functions into an array