aboutsummaryrefslogtreecommitdiffstats
path: root/src/gif.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gif.c')
-rw-r--r--src/gif.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gif.c b/src/gif.c
index 8da6554..17e5d4d 100644
--- a/src/gif.c
+++ b/src/gif.c
@@ -77,6 +77,8 @@ static int gif_read(struct image *img){
img->buf[j++] = colormap[idx].Blue;
}
+ img->state = LOADED;
+
return 0;
}
@@ -88,6 +90,7 @@ void gif_close(struct image *img){
struct imageformat giflib = {
gif_open,
+ NULL,
gif_read,
gif_close
};