diff options
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; |