GOB: Adibou2 forces palette entries 0 / 255 to be black / white

This commit is contained in:
Simon Delamarre 2022-10-29 00:43:40 +02:00 committed by Eugene Sandulenko
parent 65ec3bfa8a
commit da7439b3f3
No known key found for this signature in database
GPG Key ID: 014D387312D34F08

View File

@ -1185,6 +1185,15 @@ void Inter_v1::o1_palLoad(OpFuncParams &params) {
_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);