From 2d5bb23bede92adf10f496f62e38c6611591e923 Mon Sep 17 00:00:00 2001 From: Harry Jeffery Date: Sun, 20 Jan 2019 23:03:37 +0000 Subject: bitmap: Support multiple pixel formats --- src/bitmap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/bitmap.c') diff --git a/src/bitmap.c b/src/bitmap.c index b37d0e4..ffae72c 100644 --- a/src/bitmap.c +++ b/src/bitmap.c @@ -9,7 +9,7 @@ struct imv_bitmap *imv_bitmap_clone(struct imv_bitmap *bmp) const size_t num_bytes = 4 * bmp->width * bmp->height; copy->width = bmp->width; copy->height = bmp->height; - copy->height = bmp->height; + copy->format = bmp->format; copy->data = malloc(num_bytes); memcpy(copy->data, bmp->data, num_bytes); return copy; -- cgit v1.2.3