aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHarry Jeffery <harry@exec64.co.uk>2019-06-12 20:04:19 +0100
committerHarry Jeffery <harry@exec64.co.uk>2019-06-12 20:04:48 +0100
commit9b57e0a89f31d9397dff90e4e9443fb2abfc1c3f (patch)
treed97907e0ad091585587727cd9713ac2a7d1a8885
parent4d965ab261c4226f3f99c557a44cb69c38d44863 (diff)
downloadimv-9b57e0a89f31d9397dff90e4e9443fb2abfc1c3f.tar.gz
svg: Fix flipped colors
Fixes #157
-rw-r--r--src/backend_librsvg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend_librsvg.c b/src/backend_librsvg.c
index 8e1ef97..ae81ef4 100644
--- a/src/backend_librsvg.c
+++ b/src/backend_librsvg.c
@@ -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);