mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-27 07:58:07 -04: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
|
static int
|
||||||
thickness(float pts, int dpi)
|
thickness(float pts, int dpi)
|
||||||
{
|
{
|
||||||
return pts * (float)dpi / 72.0;
|
return max(pts * (float)dpi / 72.0, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue