box-drawing: thickness(): ensure thickness is *at least* 1px

This commit is contained in:
Daniel Eklöf 2020-12-30 13:30:11 +01:00
parent 878adb970e
commit a8496eef03
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

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