Let's use llceil instead of ceilf

master
Ansariel 2015-11-01 17:33:38 +01:00
parent c6c820f830
commit 2b4c4718d5
1 changed files with 1 additions and 1 deletions

View File

@ -790,7 +790,7 @@ void LLToolBar::updateLayoutAsNeeded()
S32 total_button_width = mButtons.size() * equalized_width + (mButtons.size() + 1) * mPadBetween;
if (mMaxRows > 0 && orientation == LLLayoutStack::HORIZONTAL && total_button_width > full_screen_width)
{
S32 buttons_per_row = (S32)ceilf((F32)mButtons.size() / (F32)mMaxRows);
S32 buttons_per_row = llceil((F32)mButtons.size() / (F32)mMaxRows);
equalized_width = (full_screen_width - mPadBetween * (buttons_per_row + 1)) / buttons_per_row;
}
}