Ticket #8974: ps2-made.patch
File ps2-made.patch, 2.0 KB (added by , 16 years ago) |
---|
-
engines/made/screen.h
old new 203 203 bool _screenLock; 204 204 bool _paletteLock; 205 205 206 byte _screenPalette[256 * 4];207 byte _palette[768], _newPalette[768];206 byte *_screenPalette; 207 byte *_palette, *_newPalette; 208 208 int _paletteColorCount, _oldPaletteColorCount; 209 209 bool _paletteInitialized, _needPalette; 210 210 int16 _textColor; -
engines/made/screen.cpp
old new 31 31 namespace Made { 32 32 33 33 Screen::Screen(MadeEngine *vm) : _vm(vm) { 34 _screenPalette = (byte *)malloc(256 * 4); 35 _palette = (byte *)malloc(768); 36 _newPalette = (byte *)malloc(768); 34 37 35 38 _backgroundScreen = new Graphics::Surface(); 36 39 _backgroundScreen->create(320, 200, 1); … … 90 93 } 91 94 92 95 Screen::~Screen() { 96 free(_screenPalette); 97 free(_palette); 98 free(_newPalette); 99 93 100 delete _backgroundScreen; 94 101 delete _workScreen; 95 102 if (_vm->getGameID() != GID_RTZ) -
engines/made/screenfx.h
old new 40 40 class ScreenEffects { 41 41 public: 42 42 ScreenEffects(Screen *screen); 43 ~ScreenEffects(); 43 44 void run(int16 effectNum, Graphics::Surface *surface, byte *palette, byte *newPalette, int colorCount); 44 45 void flash(int count, byte *palette, int colorCount); 45 46 private: 46 47 Screen *_screen; 47 byte _fxPalette[768];48 byte *_fxPalette; 48 49 static const byte vfxOffsTable[64]; 49 50 static const byte vfxOffsIndexTable[8]; 50 51 const byte *vfxOffsTablePtr; -
engines/made/screenfx.cpp
old new 51 51 vfxY1 = 0; 52 52 vfxWidth = 0; 53 53 vfxHeight = 0; 54 55 _fxPalette = (byte *)malloc(768); 56 } 57 58 ScreenEffects::~ScreenEffects() { 59 free (_fxPalette); 54 60 } 55 61 56 62 void ScreenEffects::run(int16 effectNum, Graphics::Surface *surface, byte *palette, byte *newPalette, int colorCount) {