diff options
author | Max Horn | 2002-09-27 13:05:54 +0000 |
---|---|---|
committer | Max Horn | 2002-09-27 13:05:54 +0000 |
commit | 29f8c3af953c75aa427f3b144f703c6b9291e282 (patch) | |
tree | 1f196daff7df098748e11932c5d1a5525abdba59 /backends/sdl/sdl-common.h | |
parent | 09f56dc233324a7611554912c5483e20e0684104 (diff) | |
download | scummvm-rg350-29f8c3af953c75aa427f3b144f703c6b9291e282.tar.gz scummvm-rg350-29f8c3af953c75aa427f3b144f703c6b9291e282.tar.bz2 scummvm-rg350-29f8c3af953c75aa427f3b144f703c6b9291e282.zip |
made init_size in the SDL backend reentrant
svn-id: r5022
Diffstat (limited to 'backends/sdl/sdl-common.h')
-rw-r--r-- | backends/sdl/sdl-common.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/backends/sdl/sdl-common.h b/backends/sdl/sdl-common.h index 3da878a6e6..b6d0463359 100644 --- a/backends/sdl/sdl-common.h +++ b/backends/sdl/sdl-common.h @@ -133,9 +133,9 @@ protected: }; int SCREEN_WIDTH, SCREEN_HEIGHT, CKSUM_NUM; - SDL_Rect *dirty_rect_list; + SDL_Rect _dirty_rect_list[100]; int num_dirty_rects; - uint32 *dirty_checksums; + uint32 *_dirty_checksums; int scaling; @@ -165,7 +165,8 @@ protected: uint _palette_changed_first, _palette_changed_last; - OSystem_SDL_Common() : _current_shake_pos(0), _new_shake_pos(0) {} + OSystem_SDL_Common(); + virtual ~OSystem_SDL_Common(); void add_dirty_rgn_auto(const byte *buf); void mk_checksums(const byte *buf); |