From da7439b3f31f16c93c86972715251d5cfd60c891 Mon Sep 17 00:00:00 2001 From: Simon Delamarre Date: Sat, 29 Oct 2022 00:43:40 +0200 Subject: [PATCH] GOB: Adibou2 forces palette entries 0 / 255 to be black / white --- engines/gob/inter_v1.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/engines/gob/inter_v1.cpp b/engines/gob/inter_v1.cpp index a8232520803..55fa3c4c9f3 100644 --- a/engines/gob/inter_v1.cpp +++ b/engines/gob/inter_v1.cpp @@ -1185,6 +1185,15 @@ void Inter_v1::o1_palLoad(OpFuncParams ¶ms) { _vm->_draw->_vgaPalette[0].blue = 0; } + if (_vm->getGameType() == kGameTypeAdibou2) { + _vm->_draw->_vgaPalette[0].red = 0; + _vm->_draw->_vgaPalette[0].green = 0; + _vm->_draw->_vgaPalette[0].blue = 0; + _vm->_draw->_vgaPalette[255].red = 63; + _vm->_draw->_vgaPalette[255].green = 63; + _vm->_draw->_vgaPalette[255].blue = 63; + } + if (_vm->_draw->_applyPal) { _vm->_draw->_applyPal = false; _vm->_video->setFullPalette(_vm->_global->_pPaletteDesc);