svg: Fix flipped colors

Fixes #157
This commit is contained in:
Harry Jeffery 2019-06-12 20:04:19 +01:00
parent 4d965ab261
commit 9b57e0a89f

View file

@ -37,7 +37,7 @@ static struct imv_bitmap *to_imv_bitmap(GdkPixbuf *bitmap)
struct imv_bitmap *bmp = malloc(sizeof *bmp);
bmp->width = gdk_pixbuf_get_width(bitmap);
bmp->height = gdk_pixbuf_get_height(bitmap);
bmp->format = IMV_ARGB;
bmp->format = IMV_ABGR;
size_t len = bmp->width * bmp->height * 4;
bmp->data = malloc(len);
memcpy(bmp->data, gdk_pixbuf_get_pixels(bitmap), len);