diff options
author | Sean Fox <dyntryx@gmail.com> | 2008-06-22 08:34:13 +0000 |
---|---|---|
committer | Sean Fox <dyntryx@gmail.com> | 2008-06-22 08:34:13 +0000 |
commit | 53ee8f6ff874e075ee4642a1ccdb6b3c056e6e9f (patch) | |
tree | 2b41ba3d210f2f48bce42b0cfa6e943c57bdc303 | |
parent | 5f532b9272faec9aba74fd6f6e60f23cc817f0d6 (diff) | |
download | libnsgif-53ee8f6ff874e075ee4642a1ccdb6b3c056e6e9f.tar.gz libnsgif-53ee8f6ff874e075ee4642a1ccdb6b3c056e6e9f.tar.bz2 |
Updated references to a #define variable that is now uppercase
svn path=/branches/dynis/libnsgif/; revision=4419
-rw-r--r-- | libnsgif.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -368,7 +368,7 @@ int gif_initialise_frame(struct gif_animation *gif, gif_bitmap_callback_vt *bitm /* Check if we've finished */ - if ((gif_bytes > 0) && (gif_data[0] == gif_trailer)) return 1; + if ((gif_bytes > 0) && (gif_data[0] == GIF_TRAILER)) return 1; /* Check if we have enough data * The shortest block of data is a 4-byte comment extension + 1-byte block terminator + 1-byte gif trailer @@ -463,7 +463,7 @@ int gif_initialise_frame(struct gif_animation *gif, gif_bitmap_callback_vt *bitm if (gif_bytes < 1) return GIF_INSUFFICIENT_FRAME_DATA; else - if (gif_data[0] == gif_trailer) { + if (gif_data[0] == GIF_TRAILER) { gif->buffer_position = gif_data - gif->gif_data; gif->frame_count = frame + 1; return 1; @@ -785,7 +785,7 @@ int gif_decode_frame(struct gif_animation *gif, unsigned int frame, gif_bitmap_c if (gif_bytes < 1) { return_value = GIF_INSUFFICIENT_FRAME_DATA; break; - } else if (gif_data[0] == gif_trailer) { + } else if (gif_data[0] == GIF_TRAILER) { return_value = 1; break; } @@ -800,7 +800,7 @@ int gif_decode_frame(struct gif_animation *gif, unsigned int frame, gif_bitmap_c break; /* If we only have the 1-byte LZW code size + 1-byte gif trailer, we're finished */ - } else if ((gif_bytes = 2) && (gif_data[1] == gif_trailer)) { + } else if ((gif_bytes = 2) && (gif_data[1] == GIF_TRAILER)) { return_value = 1; break; } |