ControlLook: fix minor code style violation

Change-Id: I0b3e80e7ba4418f06c20fd02f96cb2932623fd71
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4102
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: Adrien Destugues <[email protected]>
This commit is contained in:
Pascal Abresch
2021-06-20 19:55:44 +00:00
committed by Adrien Destugues
parent 7912dad947
commit 325ab89b90
2 changed files with 4 additions and 2 deletions
+2 -1
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;
}
+2 -1
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;
}