From 14e6021141ae06673f2ad8d92c60f8499e897ae8 Mon Sep 17 00:00:00 2001 From: James Brown Date: Sun, 24 Mar 2002 17:02:31 +0000 Subject: Initial variable commit, Known issues: Speed issues, waitForMessage freeze and initial palette crash. svn-id: r3814 --- sdl.cpp | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/sdl.cpp b/sdl.cpp index 9a61a2a0e0..c837d2732e 100644 --- a/sdl.cpp +++ b/sdl.cpp @@ -64,7 +64,7 @@ void updateScreen(Scumm *s); void updatePalette(Scumm *s) { SDL_Color colors[256]; int first = s->_palDirtyMin; - int num = (s->_palDirtyMax) - first + 1; + int num = s->_palDirtyMax - first + 1; int i; byte *data = s->_currentPalette; @@ -1058,10 +1058,14 @@ int main(int argc, char* argv[]) { scumm->_palManipEnd = 0; memset(scumm->_colorCycle, 0, sizeof(scumm->_colorCycle)); -/* */ - - + scumm->_CLUT_offs = 0; + scumm->_ENCD_offs = 0; + scumm->_EPAL_offs = 0; + scumm->_IM00_offs = 0; + scumm->_PALS_offs = 0; + +/* */ scumm->_fullScreen = detecter._fullScreen; scumm->_debugMode = detecter._debugMode; -- cgit v1.2.3