Use roundf() as suggested by Axel

This commit is contained in:
John Scipione
2013-05-30 00:05:14 -04:00
parent 8835205cf6
commit 17aed1bfc8
+1 -2
View File
@@ -625,10 +625,9 @@ BMenuField::Alignment() const
void
BMenuField::SetDivider(float position)
{
position = floorf(position + 0.5);
position = roundf(position);
float delta = fDivider - position;
if (delta == 0.0f)
return;