mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-10 04:27:45 -05:00
box-drawing: thickness(): ensure thickness is *at least* 1px
This commit is contained in:
parent
878adb970e
commit
a8496eef03
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue