aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llframestatview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/newview/llframestatview.cpp')
-rw-r--r--linden/indra/newview/llframestatview.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/linden/indra/newview/llframestatview.cpp b/linden/indra/newview/llframestatview.cpp
index 416bf26..33a3265 100644
--- a/linden/indra/newview/llframestatview.cpp
+++ b/linden/indra/newview/llframestatview.cpp
@@ -117,19 +117,19 @@ void LLFrameStatView::draw()
117 } 117 }
118 S32 num_bins = llmin(statp->getNumValues(), (U32)32); 118 S32 num_bins = llmin(statp->getNumValues(), (U32)32);
119 119
120 F32 total_width = mRect.getWidth() - 20.f; 120 F32 total_width = getRect().getWidth() - 20.f;
121 F32 total_height = mRect.getHeight() - 30.f; 121 F32 total_height = getRect().getHeight() - 30.f;
122 S32 left, top, right, bottom; 122 S32 left, top, right, bottom;
123 F32 key_height = 16; 123 F32 key_height = 16;
124 S32 bar_spacing = 2; 124 S32 bar_spacing = 2;
125 F32 time_scale = total_width / mTotalTime; 125 F32 time_scale = total_width / mTotalTime;
126 126
127 // Draw the window background 127 // Draw the window background
128 gl_rect_2d(0, mRect.getHeight(), mRect.getWidth(), 0, LLColor4(0.f, 0.f, 0.f, 0.25f)); 128 gl_rect_2d(0, getRect().getHeight(), getRect().getWidth(), 0, LLColor4(0.f, 0.f, 0.f, 0.25f));
129 129
130 // Render the key 130 // Render the key
131 left = 10; 131 left = 10;
132 top = mRect.getHeight() - 10; 132 top = getRect().getHeight() - 10;
133 133
134 BOOL is_active[MAX_STATS]; 134 BOOL is_active[MAX_STATS];
135 S32 bin = mStats[0]->getCurBin() - 1; 135 S32 bin = mStats[0]->getCurBin() - 1;
@@ -181,7 +181,7 @@ void LLFrameStatView::draw()
181 left = left + LLFontGL::sMonospace->getWidth(mLabels[i]) + 10; 181 left = left + LLFontGL::sMonospace->getWidth(mLabels[i]) + 10;
182 if ((i + 1) < mNumStats) 182 if ((i + 1) < mNumStats)
183 { 183 {
184 if ((left + LLFontGL::sMonospace->getWidth(mLabels[i+1])) > (mRect.getWidth() - 10)) 184 if ((left + LLFontGL::sMonospace->getWidth(mLabels[i+1])) > (getRect().getWidth() - 10))
185 { 185 {
186 left = 10; 186 left = 10;
187 top -= llfloor(LLFontGL::sMonospace->getLineHeight()); 187 top -= llfloor(LLFontGL::sMonospace->getLineHeight());
@@ -246,7 +246,7 @@ void LLFrameStatView::draw()
246 S32 graph_height = bar_height * num_bins + bar_spacing * num_bins - 1; 246 S32 graph_height = bar_height * num_bins + bar_spacing * num_bins - 1;
247 247
248 // Draw the tick marks. 248 // Draw the tick marks.
249 top = mRect.getHeight() - llfloor(key_height) - 20; 249 top = getRect().getHeight() - llfloor(key_height) - 20;
250 250
251 bottom = top - graph_height - 2; 251 bottom = top - graph_height - 2;
252 // Render the ticks and labels 252 // Render the ticks and labels
@@ -313,7 +313,7 @@ void LLFrameStatView::draw()
313 313
314 // Determine which stats are active. 314 // Determine which stats are active.
315 315
316 top = mRect.getHeight() - llfloor(key_height) - 20; 316 top = getRect().getHeight() - llfloor(key_height) - 20;
317 bottom = top - bar_height; 317 bottom = top - bar_height;
318 for (i = 0; i < 32; i++) 318 for (i = 0; i < 32; i++)
319 { 319 {