diff options
Diffstat (limited to 'src/ui/color.cpp')
-rw-r--r-- | src/ui/color.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ui/color.cpp b/src/ui/color.cpp index 5668519..a727642 100644 --- a/src/ui/color.cpp +++ b/src/ui/color.cpp @@ -105,11 +105,11 @@ bool CColor::EventProcess(const Event &event) } if ( event.type == EVENT_MOUSE_BUTTON_DOWN && - event.mouseButton.button == 1 && + event.mouseButton.button == MOUSE_BUTTON_LEFT && (m_state & STATE_VISIBLE) && (m_state & STATE_ENABLE) ) { - if ( CControl::Detect(event.mouseButton.pos) ) + if ( CControl::Detect(event.mousePos) ) { m_repeat = DELAY1; @@ -120,7 +120,7 @@ bool CColor::EventProcess(const Event &event) } } - if ( event.type == EVENT_MOUSE_BUTTON_UP && event.mouseButton.button == 1) + if ( event.type == EVENT_MOUSE_BUTTON_UP && event.mouseButton.button == MOUSE_BUTTON_LEFT) { m_repeat = 0.0f; } |