aboutsummaryrefslogtreecommitdiff
path: root/backends/sdl
diff options
context:
space:
mode:
authorMax Horn2003-05-20 10:49:05 +0000
committerMax Horn2003-05-20 10:49:05 +0000
commit2e8ff540cf75b7096bbdede4a7800a003143b4ac (patch)
treeda24443ae1f9b700a85086ef828f19529bdfd683 /backends/sdl
parent79cc9c6a2f4ebd4f0c94a09a5db256c7fa4a9409 (diff)
downloadscummvm-rg350-2e8ff540cf75b7096bbdede4a7800a003143b4ac.tar.gz
scummvm-rg350-2e8ff540cf75b7096bbdede4a7800a003143b4ac.tar.bz2
scummvm-rg350-2e8ff540cf75b7096bbdede4a7800a003143b4ac.zip
init _paletteDirtyStart/_paletteDirtyEnd to 0
svn-id: r7716
Diffstat (limited to 'backends/sdl')
-rw-r--r--backends/sdl/sdl-common.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/backends/sdl/sdl-common.cpp b/backends/sdl/sdl-common.cpp
index 92eca7acf8..2e4748b415 100644
--- a/backends/sdl/sdl-common.cpp
+++ b/backends/sdl/sdl-common.cpp
@@ -103,7 +103,10 @@ OSystem_SDL_Common::OSystem_SDL_Common()
_cdrom(0), _dirty_checksums(0),
_mouseVisible(false), _mouseDrawn(false), _mouseData(0),
_mouseHotspotX(0), _mouseHotspotY(0),
- _currentShakePos(0), _newShakePos(0) {
+ _currentShakePos(0), _newShakePos(0),
+ _paletteDirtyStart(0), _paletteDirtyEnd(0),
+ _mutex(0) {
+
// allocate palette storage
_currentPalette = (SDL_Color *)calloc(sizeof(SDL_Color), 256);
@@ -112,8 +115,6 @@ OSystem_SDL_Common::OSystem_SDL_Common()
// reset mouse state
memset(&km, 0, sizeof(km));
-
- _mutex = 0;
}
OSystem_SDL_Common::~OSystem_SDL_Common() {