aboutsummaryrefslogtreecommitdiffstats
path: root/src/image.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/image.c')
-rw-r--r--src/image.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/image.c b/src/image.c
index a4b8d21cee6..84db9bfb3b8 100644
--- a/src/image.c
+++ b/src/image.c
@@ -12075,6 +12075,18 @@ svg_load_image (struct frame *f, struct image *img, char *contents,
12075 img->background_valid = 1; 12075 img->background_valid = 1;
12076 } 12076 }
12077 12077
12078#if HAVE_NTGUI
12079 /* Windows stores the image colours in BGR format, and SVG expects
12080 them in RGB. */
12081 foreground = (foreground & 0x0000FF) << 16
12082 | (foreground & 0xFF0000) >> 16
12083 | (foreground & 0x00FF00);
12084
12085 background = (background & 0x0000FF) << 16
12086 | (background & 0xFF0000) >> 16
12087 | (background & 0x00FF00);
12088#endif
12089
12078 wrapped_contents = xmalloc (buffer_size); 12090 wrapped_contents = xmalloc (buffer_size);
12079 12091
12080 if (buffer_size <= snprintf (wrapped_contents, buffer_size, wrapper, 12092 if (buffer_size <= snprintf (wrapped_contents, buffer_size, wrapper,