diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-10-16 20:39:33 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-10-16 20:39:33 +0300 |
commit | bc92643d8db723b5049db2dbad1ce052a0ae77a9 (patch) | |
tree | 4471be99711ee310c811e990d7c210e2393aeb6e /src/gui/viewport.cpp | |
parent | 82cc576b7896f39bcf71aa85c8c4b3ef786c065b (diff) | |
download | manaverse-bc92643d8db723b5049db2dbad1ce052a0ae77a9.tar.gz manaverse-bc92643d8db723b5049db2dbad1ce052a0ae77a9.tar.bz2 manaverse-bc92643d8db723b5049db2dbad1ce052a0ae77a9.tar.xz manaverse-bc92643d8db723b5049db2dbad1ce052a0ae77a9.zip |
Fix code style and some other minor issues.
Diffstat (limited to 'src/gui/viewport.cpp')
-rw-r--r-- | src/gui/viewport.cpp | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/src/gui/viewport.cpp b/src/gui/viewport.cpp index f30ebaecd..273b8d306 100644 --- a/src/gui/viewport.cpp +++ b/src/gui/viewport.cpp @@ -58,6 +58,13 @@ Viewport::Viewport() : WindowContainer(), MouseListener(), mMap(nullptr), + mScrollRadius(config.getIntValue("ScrollRadius")), + mScrollLaziness(config.getIntValue("ScrollLaziness")), + mShowBeingPopup(config.getBoolValue("showBeingPopup")), + mSelfMouseHeal(config.getBoolValue("selfMouseHeal")), + mEnableLazyScrolling(config.getBoolValue("enableLazyScrolling")), + mScrollCenterOffsetX(config.getIntValue("ScrollCenterOffsetX")), + mScrollCenterOffsetY(config.getIntValue("ScrollCenterOffsetY")), mMouseX(0), mMouseY(0), mPixelViewX(0), @@ -78,14 +85,6 @@ Viewport::Viewport() : setOpaque(false); addMouseListener(this); - mScrollLaziness = config.getIntValue("ScrollLaziness"); - mScrollRadius = config.getIntValue("ScrollRadius"); - mScrollCenterOffsetX = config.getIntValue("ScrollCenterOffsetX"); - mScrollCenterOffsetY = config.getIntValue("ScrollCenterOffsetY"); - mShowBeingPopup = config.getBoolValue("showBeingPopup"); - mSelfMouseHeal = config.getBoolValue("selfMouseHeal"); - mEnableLazyScrolling = config.getBoolValue("enableLazyScrolling"); - config.addListener("ScrollLaziness", this); config.addListener("ScrollRadius", this); config.addListener("showBeingPopup", this); |