keep alpha when converting svg colors fixes #11289

This commit is contained in:
toger5 2017-09-30 14:48:41 +02:00
parent dee1001390
commit b3826901c7

View file

@ -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);
}
}