Skip to content
Snippets Groups Projects
Commit 8d6665b5 authored by Vadim ProductEngine's avatar Vadim ProductEngine
Browse files

Restoring a call to llround() in lllineeditor.cpp mistakenly removed in changeset 0a9ef58e8f7d.

By the way, removing a pointless call to llround() in lldraghandle.cpp.
parent 174aa757
Branches
Tags
No related merge requests found
...@@ -244,7 +244,7 @@ void LLDragHandleTop::reshapeTitleBox() ...@@ -244,7 +244,7 @@ void LLDragHandleTop::reshapeTitleBox()
const LLFontGL* font = LLFontGL::getFontSansSerif(); const LLFontGL* font = LLFontGL::getFontSansSerif();
S32 title_width = getRect().getWidth(); S32 title_width = getRect().getWidth();
title_width -= LEFT_PAD + 2 * BORDER_PAD + getButtonsRect().getWidth(); title_width -= LEFT_PAD + 2 * BORDER_PAD + getButtonsRect().getWidth();
S32 title_height = llround(font->getLineHeight()); S32 title_height = font->getLineHeight();
LLRect title_rect; LLRect title_rect;
title_rect.setLeftTopAndSize( title_rect.setLeftTopAndSize(
LEFT_PAD, LEFT_PAD,
......
...@@ -1630,7 +1630,7 @@ void LLLineEditor::draw() ...@@ -1630,7 +1630,7 @@ void LLLineEditor::draw()
LLRect background( 0, getRect().getHeight(), getRect().getWidth(), 0 ); LLRect background( 0, getRect().getHeight(), getRect().getWidth(), 0 );
background.stretch( -mBorderThickness ); background.stretch( -mBorderThickness );
S32 lineeditor_v_pad = (background.getHeight() - mGLFont->getLineHeight())/2; S32 lineeditor_v_pad = llround(((F32)background.getHeight() - mGLFont->getLineHeight())/2);
drawBackground(); drawBackground();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment