diff options
Diffstat (limited to 'linden/indra/newview/lldebugmessagebox.cpp')
-rw-r--r-- | linden/indra/newview/lldebugmessagebox.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/linden/indra/newview/lldebugmessagebox.cpp b/linden/indra/newview/lldebugmessagebox.cpp index af500da..e238800 100644 --- a/linden/indra/newview/lldebugmessagebox.cpp +++ b/linden/indra/newview/lldebugmessagebox.cpp | |||
@@ -225,21 +225,21 @@ void LLDebugVarMessageBox::draw() | |||
225 | 225 | ||
226 | if(mAnimate) | 226 | if(mAnimate) |
227 | { | 227 | { |
228 | F32 animated_val = clamp_rescale(fmodf((F32)LLFrameTimer::getElapsedSeconds() / 5.f, 1.f), 0.f, 1.f, 0.f, mSlider1->getMaxValue()); | ||
229 | if (mSlider1) | 228 | if (mSlider1) |
230 | { | 229 | { |
230 | F32 animated_val = clamp_rescale(fmodf((F32)LLFrameTimer::getElapsedSeconds() / 5.f, 1.f), 0.f, 1.f, 0.f, mSlider1->getMaxValue()); | ||
231 | mSlider1->setValue(animated_val); | 231 | mSlider1->setValue(animated_val); |
232 | slider_changed(mSlider1, this); | 232 | slider_changed(mSlider1, this); |
233 | } | 233 | if (mSlider2) |
234 | if (mSlider2) | 234 | { |
235 | { | 235 | mSlider2->setValue(animated_val); |
236 | mSlider2->setValue(animated_val); | 236 | slider_changed(mSlider2, this); |
237 | slider_changed(mSlider2, this); | 237 | } |
238 | } | 238 | if (mSlider3) |
239 | if (mSlider3) | 239 | { |
240 | { | 240 | mSlider3->setValue(animated_val); |
241 | mSlider3->setValue(animated_val); | 241 | slider_changed(mSlider3, this); |
242 | slider_changed(mSlider3, this); | 242 | } |
243 | } | 243 | } |
244 | } | 244 | } |
245 | LLFloater::draw(); | 245 | LLFloater::draw(); |