ui.gadgets.labels: only ceiling the height for now.

This might align to every other pixel on a 2x display but it fixes some
rendering artifacts with borders on subpixel boundaries.
master
John Benediktsson 2020-05-18 08:06:08 -07:00
parent 06ff539b17
commit 9635596b0b
1 changed files with 1 additions and 1 deletions

View File

@ -46,7 +46,7 @@ M: label string<< ( string label -- )
[ font>> ] [ text>> ] bi ; inline
M: label pref-dim*
>label< text-dim ;
>label< text-dim first2 ceiling 2array ;
<PRIVATE