@@ -33,7 +33,7 @@ void distanceSignCorrection(const BitmapRef<float, 1> &sdf, const Shape &shape,
template <int N>
static void multiDistanceSignCorrection(const BitmapRef<float, N> &sdf, const Shape &shape, const Projection &projection, FillRule fillRule) {
int w = sdf.width, h = sdf.height;
- if (!(w*h))
+ if (!(w && h))
return;
Scanline scanline;
bool ambiguous = false;
@@ -1,5 +1,7 @@
+#ifndef _CRT_SECURE_NO_WARNINGS
#define _CRT_SECURE_NO_WARNINGS
+#endif
#include "save-bmp.h"
#include "save-tiff.h"
@@ -1,5 +1,8 @@
+
#include "shape-description.h"
#include <cstdlib>
@@ -1,6 +1,11 @@
+#ifndef _USE_MATH_DEFINES
#define _USE_MATH_DEFINES
#include "import-svg.h"
#ifndef MSDFGEN_DISABLE_SVG
#include "save-png.h"
#include <cstdio>
@@ -8,8 +8,13 @@
#ifdef MSDFGEN_STANDALONE
#include <cmath>