From 2cb37faa9a829cad7c190928593080e2d0f9a8ea Mon Sep 17 00:00:00 2001 From: PB Date: Sun, 9 Jan 2022 17:10:59 +0100 Subject: [PATCH] Define NANOSVG_ALL_COLOR_KEYWORDS before including NanoSVG When NANOSVG_ALL_COLOR_KEYWORDS is not defined, only 10 of the 147 SVG named colors are recognized and all the others are displayed as black. --- src/generic/bmpsvg.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/generic/bmpsvg.cpp b/src/generic/bmpsvg.cpp index 0e70d164af..9f146c8b3e 100644 --- a/src/generic/bmpsvg.cpp +++ b/src/generic/bmpsvg.cpp @@ -59,6 +59,7 @@ #define NANOSVG_IMPLEMENTATION #define NANOSVGRAST_IMPLEMENTATION +#define NANOSVG_ALL_COLOR_KEYWORDS #include "../../3rdparty/nanosvg/src/nanosvg.h" #include "../../3rdparty/nanosvg/src/nanosvgrast.h"