aboutsummaryrefslogtreecommitdiffstats
path: root/src/bmp.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/bmp.c')
-rw-r--r--src/bmp.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/bmp.c b/src/bmp.c
index 33ba589..6fea4bf 100644
--- a/src/bmp.c
+++ b/src/bmp.c
@@ -102,6 +102,8 @@ struct image *bmp_open(FILE *f){
b->rowwidth += 4 - (b->rowwidth & 3);
}
+ b->img.fmt = &bmp;
+
return (struct image *)b;
}