diff options
author | Harry Jeffery <harry@exec64.co.uk> | 2019-01-20 23:03:37 +0000 |
---|---|---|
committer | Harry Jeffery <harry@exec64.co.uk> | 2019-01-29 22:25:05 +0000 |
commit | 2d5bb23bede92adf10f496f62e38c6611591e923 (patch) | |
tree | 7215a948866202de6b17b86a31feb8bf4bdb582a /src/bitmap.c | |
parent | c987d66cef2205fc1cf4284104bd8bcc6eb092d0 (diff) | |
download | imv-2d5bb23bede92adf10f496f62e38c6611591e923.tar.gz |
bitmap: Support multiple pixel formats
Diffstat (limited to 'src/bitmap.c')
-rw-r--r-- | src/bitmap.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |