StyledEdit: Do not do font->Size() / 12 but rather downscale directly.

This commit is contained in:
Augustin Cavalier 2022-08-26 23:01:32 -04:00
parent e038086025
commit 34ab706011

View File

@ -63,7 +63,7 @@ void
StatusView::AttachedToWindow()
{
SetFont(be_plain_font);
SetFontSize(10. * be_plain_font->Size() / 12.f);
SetFontSize(ceilf(be_plain_font->Size() * 0.83f));
BMessage message(UPDATE_STATUS);
message.AddInt32("line", 1);