diff options
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(); |