diff options
author | Jacek Antonelli | 2008-08-15 23:44:50 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:44:50 -0500 |
commit | 89fe5dab825a62a0e3fd8d248cbc91c65eb2a426 (patch) | |
tree | bcff14b7888d04a2fec799c59369f6095224bd08 /linden/indra/newview/llframestatview.cpp | |
parent | Second Life viewer sources 1.13.3.2 (diff) | |
download | meta-impy-89fe5dab825a62a0e3fd8d248cbc91c65eb2a426.zip meta-impy-89fe5dab825a62a0e3fd8d248cbc91c65eb2a426.tar.gz meta-impy-89fe5dab825a62a0e3fd8d248cbc91c65eb2a426.tar.bz2 meta-impy-89fe5dab825a62a0e3fd8d248cbc91c65eb2a426.tar.xz |
Second Life viewer sources 1.14.0.0
Diffstat (limited to 'linden/indra/newview/llframestatview.cpp')
-rw-r--r-- | linden/indra/newview/llframestatview.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/linden/indra/newview/llframestatview.cpp b/linden/indra/newview/llframestatview.cpp index d17d51e..e0c1cc7 100644 --- a/linden/indra/newview/llframestatview.cpp +++ b/linden/indra/newview/llframestatview.cpp | |||
@@ -198,7 +198,7 @@ void LLFrameStatView::draw() | |||
198 | 198 | ||
199 | // Draw ticks for the "Average bar" | 199 | // Draw ticks for the "Average bar" |
200 | F32 tick_value; | 200 | F32 tick_value; |
201 | char tick_label[256]; | 201 | char tick_label[256]; /* Flawfinder: ignore */ |
202 | for (tick_value = 0; tick_value <= 100; tick_value += 10) | 202 | for (tick_value = 0; tick_value <= 100; tick_value += 10) |
203 | { | 203 | { |
204 | left = 10 + llfloor(tick_value*(total_width/100.f)); | 204 | left = 10 + llfloor(tick_value*(total_width/100.f)); |
@@ -215,7 +215,7 @@ void LLFrameStatView::draw() | |||
215 | right = left + 1; | 215 | right = left + 1; |
216 | gl_rect_2d(left, top, right, bottom, LLColor4(1.f, 1.f, 1.f, 0.2f)); | 216 | gl_rect_2d(left, top, right, bottom, LLColor4(1.f, 1.f, 1.f, 0.2f)); |
217 | 217 | ||
218 | sprintf(tick_label, "%.2f", tick_value); | 218 | snprintf(tick_label, sizeof(tick_label), "%.2f", tick_value); /* Flawfinder: ignore */ |
219 | // draw labels for the tick marks | 219 | // draw labels for the tick marks |
220 | LLFontGL::sMonospace->renderUTF8(tick_label, 0, left, bottom, | 220 | LLFontGL::sMonospace->renderUTF8(tick_label, 0, left, bottom, |
221 | LLColor4(1.f, 1.f, 1.f, 0.5f), | 221 | LLColor4(1.f, 1.f, 1.f, 0.5f), |
@@ -265,7 +265,7 @@ void LLFrameStatView::draw() | |||
265 | right = left + 1; | 265 | right = left + 1; |
266 | gl_rect_2d(left, top, right, bottom, LLColor4(1.f, 1.f, 1.f, 0.25f)); | 266 | gl_rect_2d(left, top, right, bottom, LLColor4(1.f, 1.f, 1.f, 0.25f)); |
267 | 267 | ||
268 | sprintf(tick_label, "%.2f", tick_value); | 268 | snprintf(tick_label, sizeof(tick_label), "%.2f", tick_value); /* Flawfinder: ignore */ |
269 | // draw labels for the tick marks | 269 | // draw labels for the tick marks |
270 | LLFontGL::sMonospace->renderUTF8(tick_label, 0, left, bottom, | 270 | LLFontGL::sMonospace->renderUTF8(tick_label, 0, left, bottom, |
271 | LLColor4(1.f, 1.f, 1.f, 0.5f), | 271 | LLColor4(1.f, 1.f, 1.f, 0.5f), |
@@ -290,7 +290,7 @@ void LLFrameStatView::draw() | |||
290 | right = left + 1; | 290 | right = left + 1; |
291 | gl_rect_2d(left, top, right, bottom, LLColor4(1.f, 1.f, 1.f, 0.25f)); | 291 | gl_rect_2d(left, top, right, bottom, LLColor4(1.f, 1.f, 1.f, 0.25f)); |
292 | 292 | ||
293 | sprintf(tick_label, "%.2f", tick_value); | 293 | snprintf(tick_label, sizeof(tick_label), "%.2f", tick_value); /* Flawfinder: ignore */ |
294 | // draw labels for the tick marks | 294 | // draw labels for the tick marks |
295 | LLFontGL::sMonospace->renderUTF8(tick_label, 0, left, bottom, | 295 | LLFontGL::sMonospace->renderUTF8(tick_label, 0, left, bottom, |
296 | LLColor4(1.f, 1.f, 1.f, 0.5f), | 296 | LLColor4(1.f, 1.f, 1.f, 0.5f), |