mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-19 16:33:50 +00:00
Initialize palette when loading a new Smacker file - all palette colors should show correctly now
svn-id: r35387
This commit is contained in:
parent
df32288b8b
commit
45842bf9e2
@ -412,6 +412,7 @@ bool SMKPlayer::loadFile(const char *fileName) {
|
||||
|
||||
_image = (byte *)malloc(2 * _header.width * _header.height);
|
||||
_palette = (byte *)malloc(3 * 256);
|
||||
memset(_palette, 0, 3 * 256);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user