aboutsummaryrefslogtreecommitdiff
path: root/engines/gob
diff options
context:
space:
mode:
authorSven Hesse2008-11-18 20:16:50 +0000
committerSven Hesse2008-11-18 20:16:50 +0000
commit1ec33154fdb760bfd2a51e64e2c110055d79044e (patch)
tree19ff5df2dfa31b23bc08bf88e38c881cb1d96aa4 /engines/gob
parent089c8b4e48e8dd29ce7d839f6e87f12937478081 (diff)
downloadscummvm-rg350-1ec33154fdb760bfd2a51e64e2c110055d79044e.tar.gz
scummvm-rg350-1ec33154fdb760bfd2a51e64e2c110055d79044e.tar.bz2
scummvm-rg350-1ec33154fdb760bfd2a51e64e2c110055d79044e.zip
Ooops :)
svn-id: r35119
Diffstat (limited to 'engines/gob')
-rw-r--r--engines/gob/util.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/engines/gob/util.cpp b/engines/gob/util.cpp
index f04818d4a7..543e363c31 100644
--- a/engines/gob/util.cpp
+++ b/engines/gob/util.cpp
@@ -285,13 +285,12 @@ void Util::forceMouseUp(bool onlyWhenSynced) {
void Util::clearPalette(void) {
int16 i;
- byte colors[768];
+ byte colors[1024];
_vm->validateVideoMode(_vm->_global->_videoMode);
if (_vm->_global->_setAllPalette) {
- for (i = 0; i < 768; i++)
- colors[i] = 0;
+ memset(colors, 0, 1024);
g_system->setPalette(colors, 0, 256);
return;
}