mirror of
https://github.com/libretro/scummvm.git
synced 2025-03-05 09:49:14 +00:00
GOB: Don't clobber the global palette
svn-id: r55270
This commit is contained in:
parent
199b5d06af
commit
68ebdf20d5
@ -753,7 +753,7 @@ Graphics::CoktelDecoder *VideoPlayer::openVideo(const Common::String &file, Prop
|
|||||||
}
|
}
|
||||||
|
|
||||||
void VideoPlayer::copyPalette(const Video &video, int16 palStart, int16 palEnd) {
|
void VideoPlayer::copyPalette(const Video &video, int16 palStart, int16 palEnd) {
|
||||||
if (!video.decoder->hasPalette())
|
if (!video.decoder->hasPalette() || !video.decoder->isPaletted())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (palStart < 0)
|
if (palStart < 0)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user