init _paletteDirtyStart/_paletteDirtyEnd to 0

svn-id: r7716
This commit is contained in:
Max Horn
2003-05-20 10:49:05 +00:00
parent 79cc9c6a2f
commit 2e8ff540cf
+4 -3
View File
@@ -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() {