This commit is contained in:
Jaime Passos 2020-02-03 02:24:22 -03:00
parent d552e4a1c2
commit 3a6b710b2d

View file

@ -537,7 +537,7 @@ static void GIF_framewrite(void)
// Lactozilla: Compare the header's palette with the current frame's palette and see if it changed. // Lactozilla: Compare the header's palette with the current frame's palette and see if it changed.
if (gif_localcolortable) if (gif_localcolortable)
{ {
gif_framepalette = GIF_getpalette(gif_localcolortable ? max(st_palette, 0) : 0); gif_framepalette = GIF_getpalette(max(st_palette, 0));
palchanged = memcmp(gif_headerpalette, gif_framepalette, sizeof(RGBA_t) * 256); palchanged = memcmp(gif_headerpalette, gif_framepalette, sizeof(RGBA_t) * 256);
} }
else else