diff options
author | Gilles Roudiere <gilles.roudiere@gmail.com> | 2017-10-01 22:38:57 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-01 22:38:57 +0200 |
commit | d10e5eabedcdbcbb3b2854ed27b50b756a771b73 (patch) | |
tree | 37930b1b1a293166f5f0f6b7d9721e16c90584bb | |
parent | 6c25c42c7752357ce20ad21b4207ab81a6390e9c (diff) | |
parent | b3826901c7794004e9cf8a51b5cdba88c2bfb31a (diff) |
Merge pull request #11719 from toger5/svg_color_convert_alpha
keep alpha when converting svg colors fixes #11289
-rw-r--r-- | modules/svg/image_loader_svg.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/svg/image_loader_svg.cpp b/modules/svg/image_loader_svg.cpp index e27452354b..9c198ea98e 100644 --- a/modules/svg/image_loader_svg.cpp +++ b/modules/svg/image_loader_svg.cpp @@ -51,7 +51,7 @@ inline void change_nsvg_paint_color(NSVGpaint *p_paint, const uint32_t p_old, co if (p_paint->type == NSVG_PAINT_COLOR) { if (p_paint->color << 8 == p_old << 8) { - p_paint->color = p_new; + p_paint->color = (p_paint->color & 0xFF000000) | (p_new & 0x00FFFFFF); } } |