aboutsummaryrefslogtreecommitdiff
path: root/engines/gob/util.cpp
diff options
context:
space:
mode:
authorJohannes Schickel2011-02-13 15:36:11 +0100
committerJohannes Schickel2011-02-14 17:08:32 +0100
commit04d4162357d4de5f29ba65e6c373c0304a0cad6d (patch)
treeb87fddc2f58944b54efc1a65e98575e5dc07115f /engines/gob/util.cpp
parent8db9fca56ced10acbcaa104de4eeb9c362009301 (diff)
downloadscummvm-rg350-04d4162357d4de5f29ba65e6c373c0304a0cad6d.tar.gz
scummvm-rg350-04d4162357d4de5f29ba65e6c373c0304a0cad6d.tar.bz2
scummvm-rg350-04d4162357d4de5f29ba65e6c373c0304a0cad6d.zip
GOB: Adapt to setPalette RGBA->RGB change.
Diffstat (limited to 'engines/gob/util.cpp')
-rw-r--r--engines/gob/util.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/gob/util.cpp b/engines/gob/util.cpp
index f0b475f65b..4d51b3d61f 100644
--- a/engines/gob/util.cpp
+++ b/engines/gob/util.cpp
@@ -318,13 +318,13 @@ void Util::forceMouseUp(bool onlyWhenSynced) {
void Util::clearPalette() {
int16 i;
- byte colors[1024];
+ byte colors[768];
_vm->validateVideoMode(_vm->_global->_videoMode);
if (_vm->_global->_setAllPalette) {
if (_vm->getPixelFormat().bytesPerPixel == 1) {
- memset(colors, 0, 1024);
+ memset(colors, 0, sizeof(colors));
g_system->getPaletteManager()->setPalette(colors, 0, 256);
}