mirror of
https://review.haiku-os.org/haiku
synced 2025-01-31 18:56:49 +01:00
Use better variable names in SetDivider
This commit is contained in:
parent
df5d08a718
commit
91810d8efd
@ -65,7 +65,7 @@ public:
|
||||
|
||||
virtual void SetAlignment(alignment label);
|
||||
alignment Alignment() const;
|
||||
virtual void SetDivider(float dividing_line);
|
||||
virtual void SetDivider(float position);
|
||||
float Divider() const;
|
||||
|
||||
void ShowPopUpMarker();
|
||||
|
@ -626,16 +626,16 @@ BMenuField::Alignment() const
|
||||
|
||||
|
||||
void
|
||||
BMenuField::SetDivider(float divider)
|
||||
BMenuField::SetDivider(float position)
|
||||
{
|
||||
divider = floorf(divider + 0.5);
|
||||
position = floorf(position + 0.5);
|
||||
|
||||
float dx = fDivider - divider;
|
||||
float delta = fDivider - position;
|
||||
|
||||
if (dx == 0.0f)
|
||||
if (delta == 0.0f)
|
||||
return;
|
||||
|
||||
fDivider = divider;
|
||||
fDivider = position;
|
||||
|
||||
if ((Flags() & B_SUPPORTS_LAYOUT) != 0) {
|
||||
// We should never get here, since layout support means, we also
|
||||
|
Loading…
x
Reference in New Issue
Block a user