Fix bug #9644, slow response from building queues. Patch by Watermelon:

Makes doubleclick state a condition for mousePressed, so that widget 
can recognize the 'down' state in a double click state correctly.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2325 4a71c877-e1ca-e34f-864e-861f7616d084
master
Per Inge Mathisen 2007-08-02 22:41:18 +00:00
parent 73e6fec796
commit 8879d5151e
1 changed files with 1 additions and 0 deletions

View File

@ -501,6 +501,7 @@ BOOL mouseDClicked(MOUSE_KEY_CODE code)
BOOL mousePressed(MOUSE_KEY_CODE code) BOOL mousePressed(MOUSE_KEY_CODE code)
{ {
return ((aMouseState[code].state == KEY_PRESSED) || return ((aMouseState[code].state == KEY_PRESSED) ||
(aMouseState[code].state == KEY_DOUBLECLICK) ||
(aMouseState[code].state == KEY_PRESSRELEASE)); (aMouseState[code].state == KEY_PRESSRELEASE));
} }