Compare commits

...

1 Commits

Author SHA1 Message Date
Pascal Abresch 346cda45c9 ControlLook: fix minor code style violation 2021-06-06 08:41:27 +02:00
2 changed files with 4 additions and 2 deletions

View File

@ -75,7 +75,8 @@ float
BControlLook::GetScrollBarWidth(orientation orientation)
{
// this matches HaikuControlLook.cpp currently
if (be_plain_font->Size() <= 12.0f) { return 14.0f; }
if (be_plain_font->Size() <= 12.0f)
return 14.0f;
return be_plain_font->Size() / 12.0f * 14.0f;
}

View File

@ -3837,7 +3837,8 @@ HaikuControlLook::GetScrollBarWidth(orientation orientation)
{
// HaikuControlLook does not make a distinction between the
// width and height of the scrollbar, but other controllooks may
if (be_plain_font->Size() <= 12.0f) { return 14.0f; }
if (be_plain_font->Size() <= 12.0f)
return 14.0f;
return be_plain_font->Size() / 12.0f * 14.0f;
}