summaryrefslogtreecommitdiff
path: root/src/gui/viewport.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-03-24 18:28:47 +0300
committerAndrei Karas <akaras@inbox.ru>2013-03-24 21:06:51 +0300
commita306ecf96736779b08d1de7ec994d3d741d5dc61 (patch)
tree5a64809354d2c5f672a34fc9578975ab76920b5b /src/gui/viewport.cpp
parent6053e0797465a15da30b8d645c8ac7c95b596c69 (diff)
downloadmv-a306ecf96736779b08d1de7ec994d3d741d5dc61.tar.gz
mv-a306ecf96736779b08d1de7ec994d3d741d5dc61.tar.bz2
mv-a306ecf96736779b08d1de7ec994d3d741d5dc61.tar.xz
mv-a306ecf96736779b08d1de7ec994d3d741d5dc61.zip
fix code style.
Diffstat (limited to 'src/gui/viewport.cpp')
-rw-r--r--src/gui/viewport.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/viewport.cpp b/src/gui/viewport.cpp
index 2e4ff851b..e7e0a2766 100644
--- a/src/gui/viewport.cpp
+++ b/src/gui/viewport.cpp
@@ -152,10 +152,10 @@ void Viewport::draw(gcn::Graphics *gcnGraphics)
if (mScrollLaziness < 1)
mScrollLaziness = 1; // Avoids division by zero
- int cnt = 0;
-
if (mEnableLazyScrolling)
{
+ int cnt = 0;
+
// Apply lazy scrolling
while (lastTick < tick_time && cnt < 32)
{