From a8496eef037d063555e8e7dbe9094cb955ae6897 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Wed, 30 Dec 2020 13:30:11 +0100 Subject: [PATCH] box-drawing: thickness(): ensure thickness is *at least* 1px --- box-drawing.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/box-drawing.c b/box-drawing.c index b368210a..8584f8ad 100644 --- a/box-drawing.c +++ b/box-drawing.c @@ -18,7 +18,7 @@ static int thickness(float pts, int dpi) { - return pts * (float)dpi / 72.0; + return max(pts * (float)dpi / 72.0, 1); } static void