aboutsummaryrefslogtreecommitdiffstats
path: root/src/bmp.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/bmp.c')
-rw-r--r--src/bmp.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/bmp.c b/src/bmp.c
index 4024521..33ba589 100644
--- a/src/bmp.c
+++ b/src/bmp.c
@@ -169,6 +169,9 @@ int bmp_read(struct image *img){
}
free(row);
+
+ img->state = LOADED;
+
return 0;
}
@@ -180,6 +183,7 @@ void bmp_close(struct image *img){
struct imageformat bmp = {
bmp_open,
+ NULL,
bmp_read,
bmp_close
};