Initialize palette when loading a new Smacker file - all palette colors should show correctly now

svn-id: r35387
This commit is contained in:
Filippos Karapetis 2008-12-15 22:49:55 +00:00
parent df32288b8b
commit 45842bf9e2

View File

@ -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;
}