diff options
author | Sven Hesse | 2012-01-28 19:53:26 +0100 |
---|---|---|
committer | Sven Hesse | 2012-01-28 19:53:26 +0100 |
commit | 4b60a761a0ec5694178ac236e24136823d8907d9 (patch) | |
tree | ee22e58016c91a2fa025855a19eec468eda3c6ac /engines/gob/minigames | |
parent | 3a95cdf961c36387968c7db0c9950a0672b097b9 (diff) | |
download | scummvm-rg350-4b60a761a0ec5694178ac236e24136823d8907d9.tar.gz scummvm-rg350-4b60a761a0ec5694178ac236e24136823d8907d9.tar.bz2 scummvm-rg350-4b60a761a0ec5694178ac236e24136823d8907d9.zip |
GOB: Explicitely set the Diving palette
Diffstat (limited to 'engines/gob/minigames')
-rw-r--r-- | engines/gob/minigames/geisha/diving.cpp | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/engines/gob/minigames/geisha/diving.cpp b/engines/gob/minigames/geisha/diving.cpp index fb906ce346..d94ce0838c 100644 --- a/engines/gob/minigames/geisha/diving.cpp +++ b/engines/gob/minigames/geisha/diving.cpp @@ -41,6 +41,24 @@ namespace Geisha { static const uint8 kAirDecreaseRate = 15; +static const byte kPalette[48] = { + 0x00, 0x02, 0x12, + 0x01, 0x04, 0x1D, + 0x05, 0x08, 0x28, + 0x0C, 0x0D, 0x33, + 0x15, 0x14, 0x3F, + 0x00, 0x3F, 0x00, + 0x3F, 0x00, 0x00, + 0x00, 0x00, 0x00, + 0x21, 0x0D, 0x00, + 0x2F, 0x1A, 0x04, + 0x3D, 0x2B, 0x0D, + 0x10, 0x10, 0x10, + 0x1A, 0x1A, 0x1A, + 0x24, 0x24, 0x24, + 0x00, 0x01, 0x0F, + 0x3F, 0x3F, 0x3F +}; const uint16 Diving::kEvilFishTypes[kEvilFishTypeCount][5] = { { 0, 14, 8, 9, 3}, // Shark @@ -315,6 +333,9 @@ void Diving::deinit() { void Diving::initScreen() { _vm->_util->setFrameRate(15); + memcpy(_vm->_draw->_vgaPalette , kPalette, 48); + memcpy(_vm->_draw->_vgaSmallPalette, kPalette, 48); + _vm->_video->setFullPalette(_vm->_global->_pPaletteDesc); _vm->_draw->_backSurface->clear(); |