mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-05 00:36:57 +00:00
Blank the palette correctly. (Fixes Valgrind warning.)
svn-id: r38343
This commit is contained in:
parent
7fc7234312
commit
de0c772a01
@ -181,13 +181,13 @@ void MoviePlayer::play(void) {
|
||||
_system->delayMillis(100);
|
||||
|
||||
// It's tempting to call _screen->fullRefresh() here to restore the old
|
||||
// palette. However, that causes glitches with DXA movies, here the
|
||||
// palette. However, that causes glitches with DXA movies, where the
|
||||
// previous location would be momentarily drawn, before switching to
|
||||
// the new one. Work around this by setting the palette to black.
|
||||
|
||||
byte pal[3 * 256];
|
||||
byte pal[4 * 256];
|
||||
memset(pal, 0, sizeof(pal));
|
||||
_system->setPalette(pal, 0, 255);
|
||||
_system->setPalette(pal, 0, 256);
|
||||
}
|
||||
|
||||
void MoviePlayer::performPostProcessing(byte *screen) {
|
||||
|
Loading…
Reference in New Issue
Block a user