mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-31 07:53:36 +00:00
GOB: Actually, we do support 16 color fading
This commit is contained in:
parent
225f0ad3dc
commit
479eeb7e47
@ -79,9 +79,6 @@ bool PalAnim::fadeStep(int16 oper) {
|
||||
byte newGreen;
|
||||
byte newBlue;
|
||||
|
||||
if (_vm->_global->_colorCount != 256)
|
||||
error("PalAnim::fadeStep(): Only 256 color mode is supported");
|
||||
|
||||
if (oper == 0) {
|
||||
if (_vm->_global->_setAllPalette) {
|
||||
if (_vm->_global->_inVM != 0)
|
||||
@ -134,12 +131,6 @@ void PalAnim::fade(Video::PalDesc *palDesc, int16 fadeV, int16 allColors) {
|
||||
|
||||
_fadeValue = (fadeV < 0) ? -fadeV : 2;
|
||||
|
||||
if (_vm->_global->_colorCount < 256) {
|
||||
if (palDesc)
|
||||
_vm->_video->setFullPalette(palDesc);
|
||||
return;
|
||||
}
|
||||
|
||||
if (!_vm->_global->_setAllPalette) {
|
||||
if (!palDesc) {
|
||||
for (i = 0; i < 16; i++) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user