Fixed a crash in the old graphics code from commit #45542

svn-id: r45544
This commit is contained in:
Filippos Karapetis 2009-10-30 18:32:55 +00:00
parent e87808d89b
commit 9e78f4693c
2 changed files with 3 additions and 1 deletions

View File

@ -144,13 +144,13 @@ protected:
EngineState *_s;
SciGuiScreen *_screen;
SciGuiPalette *_palette;
SciGuiGfx *_gfx;
private:
virtual void initPriorityBands();
virtual void animateShowPic();
virtual void addToPicSetPicNotValid();
SciGuiGfx *_gfx;
SciGuiWindowMgr *_windowMgr;
SciGuiAnimate *_animate;
SciGuiControls *_controls;

View File

@ -40,6 +40,7 @@
#include "sci/gui32/gui32.h"
#include "sci/gui/gui_animate.h"
#include "sci/gui/gui_cursor.h"
#include "sci/gui/gui_gfx.h"
// This is the real width of a text with a specified width of 0
#define MAX_TEXT_WIDTH_MAGIC_VALUE 192
@ -380,6 +381,7 @@ SciGui32::SciGui32( EngineState *state, SciGuiScreen *screen, SciGuiPalette *pal
_screen = screen;
_palette = palette;
_cursor = cursor;
_gfx = new SciGuiGfx(_s, _screen, _palette);
}
SciGui32::~SciGui32() {