diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-06-04 01:59:00 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-06-04 01:59:00 +0300 |
commit | 98cc93d2321b9be0a2a5ae6bf67aecf6adcdd2fb (patch) | |
tree | 4a80a75c1d8d68157430bd43a1cc1e4114b33279 /src/guichan/widgets/scrollarea.cpp | |
parent | 0ce57395e1c7019c52a989c3a77e2a8eb1bc3cf7 (diff) | |
download | plus-98cc93d2321b9be0a2a5ae6bf67aecf6adcdd2fb.tar.gz plus-98cc93d2321b9be0a2a5ae6bf67aecf6adcdd2fb.tar.bz2 plus-98cc93d2321b9be0a2a5ae6bf67aecf6adcdd2fb.tar.xz plus-98cc93d2321b9be0a2a5ae6bf67aecf6adcdd2fb.zip |
Add missing initialisations to constructor.
Diffstat (limited to 'src/guichan/widgets/scrollarea.cpp')
-rw-r--r-- | src/guichan/widgets/scrollarea.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/guichan/widgets/scrollarea.cpp b/src/guichan/widgets/scrollarea.cpp index f40ba5b87..8001e1d5e 100644 --- a/src/guichan/widgets/scrollarea.cpp +++ b/src/guichan/widgets/scrollarea.cpp @@ -60,6 +60,8 @@ namespace gcn mHScroll = 0; mHPolicy = SHOW_AUTO; mVPolicy = SHOW_AUTO; + mVBarVisible = false; + mHBarVisible = false; mScrollbarWidth = 12; mUpButtonPressed = false; mDownButtonPressed = false; @@ -71,6 +73,8 @@ namespace gcn mRightButtonScrollAmount = 10; mIsVerticalMarkerDragged = false; mIsHorizontalMarkerDragged = false; + mHorizontalMarkerDragOffset = 0; + mVerticalMarkerDragOffset = 0; mOpaque = true; addMouseListener(this); @@ -82,6 +86,8 @@ namespace gcn mHScroll = 0; mHPolicy = SHOW_AUTO; mVPolicy = SHOW_AUTO; + mVBarVisible = false; + mHBarVisible = false; mScrollbarWidth = 12; mUpButtonPressed = false; mDownButtonPressed = false; @@ -93,6 +99,8 @@ namespace gcn mRightButtonScrollAmount = 10; mIsVerticalMarkerDragged = false; mIsHorizontalMarkerDragged = false; + mHorizontalMarkerDragOffset = 0; + mVerticalMarkerDragOffset = 0; mOpaque = true; setContent(content); @@ -108,6 +116,8 @@ namespace gcn mHPolicy = hPolicy; mVPolicy = vPolicy; mScrollbarWidth = 12; + mVBarVisible = false; + mHBarVisible = false; mUpButtonPressed = false; mDownButtonPressed = false; mLeftButtonPressed = false; @@ -118,6 +128,8 @@ namespace gcn mRightButtonScrollAmount = 10; mIsVerticalMarkerDragged = false; mIsHorizontalMarkerDragged = false; + mHorizontalMarkerDragOffset = 0; + mVerticalMarkerDragOffset = 0; mOpaque = true; setContent(content); |