diff options
author | Jacek Antonelli | 2008-09-06 18:24:57 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-09-06 18:25:07 -0500 |
commit | 798d367d54a6c6379ad355bd8345fa40e31e7fe9 (patch) | |
tree | 1921f1708cd0240648c97bc02df2c2ab5f2fc41e /linden/indra/newview/llvelocitybar.cpp | |
parent | Second Life viewer sources 1.20.15 (diff) | |
download | meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.zip meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.gz meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.bz2 meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.xz |
Second Life viewer sources 1.21.0-RC
Diffstat (limited to 'linden/indra/newview/llvelocitybar.cpp')
-rw-r--r-- | linden/indra/newview/llvelocitybar.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/linden/indra/newview/llvelocitybar.cpp b/linden/indra/newview/llvelocitybar.cpp index 169ecac..e8b9a74 100644 --- a/linden/indra/newview/llvelocitybar.cpp +++ b/linden/indra/newview/llvelocitybar.cpp | |||
@@ -109,32 +109,32 @@ void LLVelocityBar::draw() | |||
109 | 109 | ||
110 | top = BAR_TOP + 15; | 110 | top = BAR_TOP + 15; |
111 | left = 0; | 111 | left = 0; |
112 | char str[80]; /* Flawfinder: ignore */ | 112 | std::string str; |
113 | snprintf(str, sizeof(str), "Velocity %.3fm/s", velocity); /* Flawfinder: ignore */ | 113 | str = llformat( "Velocity %.3fm/s", velocity); |
114 | LLFontGL::sMonospace->renderUTF8(str, 0, left, top, color, LLFontGL::LEFT, LLFontGL::TOP); | 114 | LLFontGL::sMonospace->renderUTF8(str, 0, left, top, color, LLFontGL::LEFT, LLFontGL::TOP); |
115 | 115 | ||
116 | top = TICK_BOTTOM; | 116 | top = TICK_BOTTOM; |
117 | 117 | ||
118 | left = - MAGIC_CHAR_WIDTH/2; | 118 | left = - MAGIC_CHAR_WIDTH/2; |
119 | LLFontGL::sMonospace->renderUTF8("0", 0, left, top, color, LLFontGL::LEFT, LLFontGL::TOP); | 119 | LLFontGL::sMonospace->renderUTF8(std::string("0"), 0, left, top, color, LLFontGL::LEFT, LLFontGL::TOP); |
120 | 120 | ||
121 | left = (getRect().getWidth()*1 / 6) - MAGIC_CHAR_WIDTH * 2; | 121 | left = (getRect().getWidth()*1 / 6) - MAGIC_CHAR_WIDTH * 2; |
122 | LLFontGL::sMonospace->renderUTF8("1", 0, left, top, color, LLFontGL::LEFT, LLFontGL::TOP); | 122 | LLFontGL::sMonospace->renderUTF8(std::string("1"), 0, left, top, color, LLFontGL::LEFT, LLFontGL::TOP); |
123 | 123 | ||
124 | left = (getRect().getWidth()*2 / 6) - MAGIC_CHAR_WIDTH; | 124 | left = (getRect().getWidth()*2 / 6) - MAGIC_CHAR_WIDTH; |
125 | LLFontGL::sMonospace->renderUTF8("2", 0, left, top, color, LLFontGL::LEFT, LLFontGL::TOP); | 125 | LLFontGL::sMonospace->renderUTF8(std::string("2"), 0, left, top, color, LLFontGL::LEFT, LLFontGL::TOP); |
126 | 126 | ||
127 | left = (getRect().getWidth()*3 / 6) - MAGIC_CHAR_WIDTH * 2; | 127 | left = (getRect().getWidth()*3 / 6) - MAGIC_CHAR_WIDTH * 2; |
128 | LLFontGL::sMonospace->renderUTF8("3", 0, left, top, color, LLFontGL::LEFT, LLFontGL::TOP); | 128 | LLFontGL::sMonospace->renderUTF8(std::string("3"), 0, left, top, color, LLFontGL::LEFT, LLFontGL::TOP); |
129 | 129 | ||
130 | left = (getRect().getWidth()*4 / 6) - MAGIC_CHAR_WIDTH; | 130 | left = (getRect().getWidth()*4 / 6) - MAGIC_CHAR_WIDTH; |
131 | LLFontGL::sMonospace->renderUTF8("4", 0, left, top, color, LLFontGL::LEFT, LLFontGL::TOP); | 131 | LLFontGL::sMonospace->renderUTF8(std::string("4"), 0, left, top, color, LLFontGL::LEFT, LLFontGL::TOP); |
132 | 132 | ||
133 | left = (getRect().getWidth()*5 / 6) - MAGIC_CHAR_WIDTH * 2; | 133 | left = (getRect().getWidth()*5 / 6) - MAGIC_CHAR_WIDTH * 2; |
134 | LLFontGL::sMonospace->renderUTF8("5", 0, left, top, color, LLFontGL::LEFT, LLFontGL::TOP); | 134 | LLFontGL::sMonospace->renderUTF8(std::string("5"), 0, left, top, color, LLFontGL::LEFT, LLFontGL::TOP); |
135 | 135 | ||
136 | left = (getRect().getWidth()*6 / 6) - MAGIC_CHAR_WIDTH * 3; | 136 | left = (getRect().getWidth()*6 / 6) - MAGIC_CHAR_WIDTH * 3; |
137 | LLFontGL::sMonospace->renderUTF8("6 m/s", 0, left, top, color, LLFontGL::LEFT, LLFontGL::TOP); | 137 | LLFontGL::sMonospace->renderUTF8(std::string("6 m/s"), 0, left, top, color, LLFontGL::LEFT, LLFontGL::TOP); |
138 | 138 | ||
139 | // draw idle time | 139 | // draw idle time |
140 | top = BAR_TOP; | 140 | top = BAR_TOP; |