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:
committed by
Adrien Destugues
parent
7912dad947
commit
325ab89b90
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user