# HG changeset patch # User melanson # Date 1013657210 0 # Node ID f78d2b53aa486896e39e2c107651b4538864d5b8 # Parent 9c23a7497a6d11678747f3bf5d6abc60c80b1d2b a few quick fixes to the FLI decoder diff -r 9c23a7497a6d -r f78d2b53aa48 fli.c --- a/fli.c Wed Feb 13 08:59:23 2002 +0000 +++ b/fli.c Thu Feb 14 03:26:50 2002 +0000 @@ -340,10 +340,10 @@ if (update_whole_frame) { - pixel_ptr = 0; + pixel_ptr = ghost_pixel_ptr = 0; while (pixel_ptr < (width * height * bytes_per_pixel)) { - palette_ptr1 = fli_ghost_image[pixel_ptr/bytes_per_pixel]; + palette_ptr1 = fli_ghost_image[ghost_pixel_ptr++]; decoded[pixel_ptr++] = palette[palette_ptr1 + 0]; decoded[pixel_ptr++] = palette[palette_ptr1 + 1]; decoded[pixel_ptr++] = palette[palette_ptr1 + 2];