From 98cc93d2321b9be0a2a5ae6bf67aecf6adcdd2fb Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 4 Jun 2011 01:59:00 +0300 Subject: Add missing initialisations to constructor. --- src/guichan/widgets/scrollarea.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/guichan') 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); -- cgit v1.2.3-70-g09d2