aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llstatbar.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:45:34 -0500
committerJacek Antonelli2008-08-15 23:45:34 -0500
commitcd17687f01420952712a500107e0f93e7ab8d5f8 (patch)
treece48c2b706f2c1176290e39fb555fbdf6648ce01 /linden/indra/newview/llstatbar.cpp
parentSecond Life viewer sources 1.19.0.5 (diff)
downloadmeta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.zip
meta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.tar.gz
meta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.tar.bz2
meta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.tar.xz
Second Life viewer sources 1.19.1.0
Diffstat (limited to 'linden/indra/newview/llstatbar.cpp')
-rw-r--r--linden/indra/newview/llstatbar.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/linden/indra/newview/llstatbar.cpp b/linden/indra/newview/llstatbar.cpp
index ceb9659..15dcd75 100644
--- a/linden/indra/newview/llstatbar.cpp
+++ b/linden/indra/newview/llstatbar.cpp
@@ -134,9 +134,9 @@ void LLStatBar::draw()
134 mUpdateTimer.reset(); 134 mUpdateTimer.reset();
135 } 135 }
136 136
137 S32 width = mRect.getWidth() - 40; 137 S32 width = getRect().getWidth() - 40;
138 S32 max_width = width; 138 S32 max_width = width;
139 S32 bar_top = mRect.getHeight() - 15; // 16 pixels from top. 139 S32 bar_top = getRect().getHeight() - 15; // 16 pixels from top.
140 S32 bar_height = bar_top - 20; 140 S32 bar_height = bar_top - 20;
141 S32 tick_height = 4; 141 S32 tick_height = 4;
142 S32 tick_width = 1; 142 S32 tick_width = 1;
@@ -144,7 +144,7 @@ void LLStatBar::draw()
144 144
145 F32 value_scale = max_width/(mMaxBar - mMinBar); 145 F32 value_scale = max_width/(mMaxBar - mMinBar);
146 146
147 LLFontGL::sMonospace->renderUTF8(mLabel, 0, 0, mRect.getHeight(), LLColor4(1.f, 1.f, 1.f, 1.f), 147 LLFontGL::sMonospace->renderUTF8(mLabel, 0, 0, getRect().getHeight(), LLColor4(1.f, 1.f, 1.f, 1.f),
148 LLFontGL::LEFT, LLFontGL::TOP); 148 LLFontGL::LEFT, LLFontGL::TOP);
149 149
150 char value_format[64]; /* Flawfinder: ignore */ 150 char value_format[64]; /* Flawfinder: ignore */
@@ -161,7 +161,7 @@ void LLStatBar::draw()
161 } 161 }
162 162
163 // Draw the value. 163 // Draw the value.
164 LLFontGL::sMonospace->renderUTF8(value_str, 0, width, mRect.getHeight(), 164 LLFontGL::sMonospace->renderUTF8(value_str, 0, width, getRect().getHeight(),
165 LLColor4(1.f, 1.f, 1.f, 0.5f), 165 LLColor4(1.f, 1.f, 1.f, 0.5f),
166 LLFontGL::RIGHT, LLFontGL::TOP); 166 LLFontGL::RIGHT, LLFontGL::TOP);
167 167