GOB: Explicitely set the Diving palette

This commit is contained in:
Sven Hesse 2012-01-28 19:53:26 +01:00
parent 3a95cdf961
commit 4b60a761a0

View File

@ -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();