GOB: Actually, we do support 16 color fading

This commit is contained in:
Sven Hesse 2011-08-26 05:00:28 +02:00
parent 225f0ad3dc
commit 479eeb7e47

View File

@ -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++) {