|
|
@@ -24,6 +24,12 @@ |
|
|
|
#define STBI_HEADER_FILE_ONLY |
|
|
|
#include "stb_image.c" |
|
|
|
|
|
|
|
#ifdef _MSC_VER |
|
|
|
#pragma warning(disable: 4100) // unreferenced formal parameter |
|
|
|
#pragma warning(disable: 4127) // conditional expression is constant |
|
|
|
#pragma warning(disable: 4204) // nonstandard extension used : non-constant aggregate initializer |
|
|
|
#pragma warning(disable: 4706) // assignment within conditional expression |
|
|
|
#endif |
|
|
|
|
|
|
|
#define NVG_INIT_COMMANDS_SIZE 256 |
|
|
|
#define NVG_INIT_POINTS_SIZE 128 |
|
|
@@ -977,7 +983,7 @@ static void nvg__addPoint(struct NVGcontext* ctx, float x, float y, int flags) |
|
|
|
memset(pt, 0, sizeof(*pt)); |
|
|
|
pt->x = x; |
|
|
|
pt->y = y; |
|
|
|
pt->flags = flags; |
|
|
|
pt->flags = (unsigned char)flags; |
|
|
|
|
|
|
|
ctx->cache->npoints++; |
|
|
|
path->count++; |
|
|
|