summaryrefslogtreecommitdiff
path: root/indra/llui
diff options
context:
space:
mode:
authorMnikolenko Productengine <mnikolenko@productengine.com>2021-07-19 20:07:03 +0300
committerMnikolenko Productengine <mnikolenko@productengine.com>2021-07-19 20:07:03 +0300
commit928191f525cf8a02816718eefd9a65097d8ecb8b (patch)
tree31634f316e31c469104129b0b8b49ba6ca71b8bb /indra/llui
parent84ae60a3b34d92930a74e9207bf39e6335e307a0 (diff)
SL-15297 performance floater UI update #2
Diffstat (limited to 'indra/llui')
-rw-r--r--indra/llui/llscrolllistcell.cpp3
-rw-r--r--indra/llui/llscrolllistcell.h1
2 files changed, 2 insertions, 2 deletions
diff --git a/indra/llui/llscrolllistcell.cpp b/indra/llui/llscrolllistcell.cpp
index c5f53823f3..61470d1440 100644
--- a/indra/llui/llscrolllistcell.cpp
+++ b/indra/llui/llscrolllistcell.cpp
@@ -234,8 +234,7 @@ void LLScrollListBar::draw(const LLColor4& color, const LLColor4& highlight_colo
S32 left = bar_width - bar_width * mRatio;
left = llclamp(left, mLeftPad, getWidth() - mRightPad - 1);
- gl_line_2d(left, mBottom, getWidth() - mRightPad, mBottom, mColor);
- gl_line_2d(left, mBottom - 1, getWidth() - mRightPad, mBottom - 1, mColor);
+ gl_rect_2d(left, mBottom, getWidth() - mRightPad, mBottom - 1, mColor);
}
//
diff --git a/indra/llui/llscrolllistcell.h b/indra/llui/llscrolllistcell.h
index 26a272b270..9a659dfd0d 100644
--- a/indra/llui/llscrolllistcell.h
+++ b/indra/llui/llscrolllistcell.h
@@ -154,6 +154,7 @@ public:
void setText(const LLStringExplicit& text);
void setFontStyle(const U8 font_style);
+ void setAlignment(LLFontGL::HAlign align) { mFontAlignment = align; }
protected:
LLUIString mText;