Use roundf() as suggested by Axel

This commit is contained in:
John Scipione 2013-05-26 01:43:56 -04:00
parent 8835205cf6
commit 17aed1bfc8

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;