diff options
author | jmarshallnz <jmarshallnz@svn> | 2009-10-15 22:59:31 +0000 |
---|---|---|
committer | jmarshallnz <jmarshallnz@svn> | 2009-10-15 22:59:31 +0000 |
commit | 3e95d0f0a3814cc74ae6fff067c78b99b9eabbba (patch) | |
tree | f4dad453d16cd85aaaf704356df2b1564f001afb /guilib/GUIScrollBarControl.cpp | |
parent | 3bb2f1096789e377b55c9d90ae76cdb948b17054 (diff) |
changed: Better exclusive access control tracking for the mouse - should help with multiple scrollbars with the same id (which is highly discouraged)
git-svn-id: https://xbmc.svn.sourceforge.net/svnroot/xbmc/trunk@23755 568bbfeb-2a22-0410-94d2-cc84cf5bfa90
Diffstat (limited to 'guilib/GUIScrollBarControl.cpp')
-rw-r--r-- | guilib/GUIScrollBarControl.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/guilib/GUIScrollBarControl.cpp b/guilib/GUIScrollBarControl.cpp index 9cd7125367..ed6618b29d 100644 --- a/guilib/GUIScrollBarControl.cpp +++ b/guilib/GUIScrollBarControl.cpp @@ -259,7 +259,7 @@ bool CGUIScrollBar::OnMouseClick(int button, const CPoint &point) { g_Mouse.SetState(MOUSE_STATE_CLICK); // turn off any exclusive access, if it's on... - g_Mouse.EndExclusiveAccess(GetID(), GetParentID()); + g_Mouse.EndExclusiveAccess(this, GetParentID()); if (m_guiBackground.HitTest(point)) { // set the position SetFromPosition(point); @@ -272,7 +272,7 @@ bool CGUIScrollBar::OnMouseDrag(const CPoint &offset, const CPoint &point) { g_Mouse.SetState(MOUSE_STATE_DRAG); // get exclusive access to the mouse - g_Mouse.SetExclusiveAccess(GetID(), GetParentID(), point); + g_Mouse.SetExclusiveAccess(this, GetParentID(), point); // get the position of the mouse SetFromPosition(point); return true; |