aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Brown2002-03-24 17:02:31 +0000
committerJames Brown2002-03-24 17:02:31 +0000
commit14e6021141ae06673f2ad8d92c60f8499e897ae8 (patch)
treeaf1136d6686d5456e1619efeecc83f994dd7a4d3
parent000e161afe5820144bf5f42ffd1848685587f1f8 (diff)
downloadscummvm-rg350-14e6021141ae06673f2ad8d92c60f8499e897ae8.tar.gz
scummvm-rg350-14e6021141ae06673f2ad8d92c60f8499e897ae8.tar.bz2
scummvm-rg350-14e6021141ae06673f2ad8d92c60f8499e897ae8.zip
Initial variable commit, Known issues:
Speed issues, waitForMessage freeze and initial palette crash. svn-id: r3814
-rw-r--r--sdl.cpp12
1 files 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;