Compare commits

...

2 Commits

Author SHA1 Message Date
David Nadaski 24cad2ce52
Merge 2dc955d92d into 5a88b0c2b9 2024-10-03 13:15:30 -03:00
Chlumsky 5a88b0c2b9 Minor warning fixes 2024-09-28 13:12:20 +02:00
7 changed files with 21 additions and 1 deletions

View File

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

View File

@ -1,5 +1,7 @@
#ifndef _CRT_SECURE_NO_WARNINGS
#define _CRT_SECURE_NO_WARNINGS
#endif
#include "save-bmp.h"

View File

@ -1,5 +1,7 @@
#ifndef _CRT_SECURE_NO_WARNINGS
#define _CRT_SECURE_NO_WARNINGS
#endif
#include "save-tiff.h"

View File

@ -1,5 +1,8 @@
#ifndef _CRT_SECURE_NO_WARNINGS
#define _CRT_SECURE_NO_WARNINGS
#endif
#include "shape-description.h"
#include <cstdlib>

View File

@ -1,6 +1,11 @@
#ifndef _USE_MATH_DEFINES
#define _USE_MATH_DEFINES
#endif
#ifndef _CRT_SECURE_NO_WARNINGS
#define _CRT_SECURE_NO_WARNINGS
#endif
#include "import-svg.h"
#ifndef MSDFGEN_DISABLE_SVG

View File

@ -1,5 +1,8 @@
#ifndef _CRT_SECURE_NO_WARNINGS
#define _CRT_SECURE_NO_WARNINGS
#endif
#include "save-png.h"
#include <cstdio>

View File

@ -8,8 +8,13 @@
#ifdef MSDFGEN_STANDALONE
#ifndef _USE_MATH_DEFINES
#define _USE_MATH_DEFINES
#endif
#ifndef _CRT_SECURE_NO_WARNINGS
#define _CRT_SECURE_NO_WARNINGS
#endif
#include <cstdlib>
#include <cstdio>
#include <cmath>