summaryrefslogtreecommitdiffstats
path: root/src/ui/button.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/button.cpp')
-rw-r--r--src/ui/button.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ui/button.cpp b/src/ui/button.cpp
index 7473409..d98e676 100644
--- a/src/ui/button.cpp
+++ b/src/ui/button.cpp
@@ -105,7 +105,7 @@ bool CButton::EventProcess(const Event &event)
(m_state & STATE_VISIBLE) &&
(m_state & STATE_ENABLE) )
{
- if ( CControl::Detect(event.pos) )
+ if ( CControl::Detect(event.mouseButton.pos) )
{
m_bCapture = true;
m_repeat = DELAY1;
@@ -128,7 +128,7 @@ bool CButton::EventProcess(const Event &event)
event.mouseButton.button == 1 &&
m_bCapture )
{
- if ( CControl::Detect(event.pos) )
+ if ( CControl::Detect(event.mouseButton.pos) )
{
if ( !m_bImmediat && !m_bRepeat )
{