changeset 4692:f78d2b53aa48

a few quick fixes to the FLI decoder
author melanson
date Thu, 14 Feb 2002 03:26:50 +0000
parents 9c23a7497a6d
children 20d5cc87be20
files fli.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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];