summaryrefslogtreecommitdiff
path: root/indra/llui/llscrollcontainer.cpp
diff options
context:
space:
mode:
authorMnikolenko ProductEngine <mnikolenko@productengine.com>2015-04-28 12:03:31 +0300
committerMnikolenko ProductEngine <mnikolenko@productengine.com>2015-04-28 12:03:31 +0300
commit89321a56fd95ade557be41a07e1b3deaa6162281 (patch)
tree0eee17609e3c72cdc5319f7ee9725214588baf72 /indra/llui/llscrollcontainer.cpp
parentb2200f06dacfde4fe62a8f7f252e941c65d71c72 (diff)
parentfde0868231a25b8c9ce03a86cb53f1738d35688d (diff)
increment viewer version to 3.7.29
Diffstat (limited to 'indra/llui/llscrollcontainer.cpp')
-rwxr-xr-xindra/llui/llscrollcontainer.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/indra/llui/llscrollcontainer.cpp b/indra/llui/llscrollcontainer.cpp
index 8c506d76bb..f70eebc594 100755
--- a/indra/llui/llscrollcontainer.cpp
+++ b/indra/llui/llscrollcontainer.cpp
@@ -48,7 +48,6 @@
/// Local function declarations, constants, enums, and typedefs
///----------------------------------------------------------------------------
-static const S32 HORIZONTAL_MULTIPLE = 8;
static const S32 VERTICAL_MULTIPLE = 16;
static const F32 AUTO_SCROLL_RATE_ACCEL = 120.f;
@@ -315,7 +314,7 @@ bool LLScrollContainer::autoScroll(S32 x, S32 y)
// clip rect against root view
inner_rect_local.intersectWith(screen_local_extents);
- S32 auto_scroll_speed = llround(mAutoScrollRate * LLFrameTimer::getFrameDeltaTimeF32());
+ S32 auto_scroll_speed = ll_round(mAutoScrollRate * LLFrameTimer::getFrameDeltaTimeF32());
// autoscroll region should take up no more than one third of visible scroller area
S32 auto_scroll_region_width = llmin(inner_rect_local.getWidth() / 3, 10);
S32 auto_scroll_region_height = llmin(inner_rect_local.getHeight() / 3, 10);