From 664a44014fc6a984c14c8b725e9144d8c0809b1e Mon Sep 17 00:00:00 2001 From: Nicolas Mellado Date: Wed, 6 Dec 2023 16:30:44 +0100 Subject: [PATCH] Fix potential normalisation error --- src/drawingPasses/distanceField.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/drawingPasses/distanceField.h b/src/drawingPasses/distanceField.h index 9541a78..7e38bfa 100644 --- a/src/drawingPasses/distanceField.h +++ b/src/drawingPasses/distanceField.h @@ -5,7 +5,7 @@ struct DistanceField : public DrawingPass { inline explicit DistanceField() : DrawingPass() {} void render(const MyView::PointCollection& points, uint8_t*buffer, int w, int h) override{ - double normFactor (std::max(w,h)/2); + double normFactor (std::max(w,h)); for (int j = 0; j < h; ++j ) { for (int i = 0; i < w; ++i) { auto *b = buffer + (i + j * w) * 4;