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.
This commit is contained in:
PB
2022-01-09 17:10:59 +01:00
parent 7f5fe09a34
commit 2cb37faa9a

View File

@@ -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"