aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llframestatview.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2009-04-30 13:04:20 -0500
committerJacek Antonelli2009-04-30 13:07:16 -0500
commitca8149ca6d157eb4b5fc8ba0e5ba3a6e56f72e7e (patch)
tree8348301d0ac44a524f1819b777686bf086907d76 /linden/indra/newview/llframestatview.cpp
parentSecond Life viewer sources 1.22.11 (diff)
downloadmeta-impy-ca8149ca6d157eb4b5fc8ba0e5ba3a6e56f72e7e.zip
meta-impy-ca8149ca6d157eb4b5fc8ba0e5ba3a6e56f72e7e.tar.gz
meta-impy-ca8149ca6d157eb4b5fc8ba0e5ba3a6e56f72e7e.tar.bz2
meta-impy-ca8149ca6d157eb4b5fc8ba0e5ba3a6e56f72e7e.tar.xz
Second Life viewer sources 1.23.0-RC
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/llframestatview.cpp23
1 files changed, 12 insertions, 11 deletions
diff --git a/linden/indra/newview/llframestatview.cpp b/linden/indra/newview/llframestatview.cpp
index 7271faf..9eb2957 100644
--- a/linden/indra/newview/llframestatview.cpp
+++ b/linden/indra/newview/llframestatview.cpp
@@ -17,7 +17,8 @@
17 * There are special exceptions to the terms and conditions of the GPL as 17 * There are special exceptions to the terms and conditions of the GPL as
18 * it is applied to this Source Code. View the full text of the exception 18 * it is applied to this Source Code. View the full text of the exception
19 * in the file doc/FLOSS-exception.txt in this software distribution, or 19 * in the file doc/FLOSS-exception.txt in this software distribution, or
20 * online at http://secondlifegrid.net/programs/open_source/licensing/flossexception 20 * online at
21 * http://secondlifegrid.net/programs/open_source/licensing/flossexception
21 * 22 *
22 * By copying, modifying or distributing this software, you acknowledge 23 * By copying, modifying or distributing this software, you acknowledge
23 * that you have read and understood your obligations described above, 24 * that you have read and understood your obligations described above,
@@ -164,24 +165,24 @@ void LLFrameStatView::draw()
164 165
165 left = left + 15; 166 left = left + 15;
166 // Draw the label. 167 // Draw the label.
167 LLFontGL::sMonospace->renderUTF8(mLabels[i], 0, left, top, 168 LLFontGL::getFontMonospace()->renderUTF8(mLabels[i], 0, left, top,
168 LLColor4(1.f, 1.f, 1.f, 1.f), 169 LLColor4(1.f, 1.f, 1.f, 1.f),
169 LLFontGL::LEFT, LLFontGL::TOP); 170 LLFontGL::LEFT, LLFontGL::TOP);
170 171
171 left = left + LLFontGL::sMonospace->getWidth(mLabels[i]) + 10; 172 left = left + LLFontGL::getFontMonospace()->getWidth(mLabels[i]) + 10;
172 if ((i + 1) < mNumStats) 173 if ((i + 1) < mNumStats)
173 { 174 {
174 if ((left + LLFontGL::sMonospace->getWidth(mLabels[i+1])) > (getRect().getWidth() - 10)) 175 if ((left + LLFontGL::getFontMonospace()->getWidth(mLabels[i+1])) > (getRect().getWidth() - 10))
175 { 176 {
176 left = 10; 177 left = 10;
177 top -= llfloor(LLFontGL::sMonospace->getLineHeight()); 178 top -= llfloor(LLFontGL::getFontMonospace()->getLineHeight());
178 key_height += LLFontGL::sMonospace->getLineHeight(); 179 key_height += LLFontGL::getFontMonospace()->getLineHeight();
179 } 180 }
180 } 181 }
181 } 182 }
182 183
183 top -= llfloor(LLFontGL::sMonospace->getLineHeight()); 184 top -= llfloor(LLFontGL::getFontMonospace()->getLineHeight());
184 bottom = top - llfloor(LLFontGL::sMonospace->getLineHeight()); 185 bottom = top - llfloor(LLFontGL::getFontMonospace()->getLineHeight());
185 F32 total_time = 0.f; 186 F32 total_time = 0.f;
186 F32 bin_means[32]; 187 F32 bin_means[32];
187 188
@@ -210,7 +211,7 @@ void LLFrameStatView::draw()
210 211
211 tick_label = llformat("%.2f", tick_value); 212 tick_label = llformat("%.2f", tick_value);
212 // draw labels for the tick marks 213 // draw labels for the tick marks
213 LLFontGL::sMonospace->renderUTF8(tick_label, 0, left, bottom, 214 LLFontGL::getFontMonospace()->renderUTF8(tick_label, 0, left, bottom,
214 LLColor4(1.f, 1.f, 1.f, 0.5f), 215 LLColor4(1.f, 1.f, 1.f, 0.5f),
215 LLFontGL::LEFT, LLFontGL::TOP); 216 LLFontGL::LEFT, LLFontGL::TOP);
216 } 217 }
@@ -260,7 +261,7 @@ void LLFrameStatView::draw()
260 261
261 tick_label = llformat("%.2f", tick_value); 262 tick_label = llformat("%.2f", tick_value);
262 // draw labels for the tick marks 263 // draw labels for the tick marks
263 LLFontGL::sMonospace->renderUTF8(tick_label, 0, left, bottom, 264 LLFontGL::getFontMonospace()->renderUTF8(tick_label, 0, left, bottom,
264 LLColor4(1.f, 1.f, 1.f, 0.5f), 265 LLColor4(1.f, 1.f, 1.f, 0.5f),
265 LLFontGL::LEFT, LLFontGL::TOP); 266 LLFontGL::LEFT, LLFontGL::TOP);
266 } 267 }
@@ -285,7 +286,7 @@ void LLFrameStatView::draw()
285 286
286 tick_label = llformat("%.2f", tick_value); 287 tick_label = llformat("%.2f", tick_value);
287 // draw labels for the tick marks 288 // draw labels for the tick marks
288 LLFontGL::sMonospace->renderUTF8(tick_label, 0, left, bottom, 289 LLFontGL::getFontMonospace()->renderUTF8(tick_label, 0, left, bottom,
289 LLColor4(1.f, 1.f, 1.f, 0.5f), 290 LLColor4(1.f, 1.f, 1.f, 0.5f),
290 LLFontGL::LEFT, LLFontGL::TOP); 291 LLFontGL::LEFT, LLFontGL::TOP);
291 } 292 }