fix time type affecting double click on fbwinframe
This commit is contained in:
parent
0780952b10
commit
3a7c01abed
2 changed files with 4 additions and 1 deletions
|
@ -1,6 +1,9 @@
|
|||
(Format: Year/Month/Day)
|
||||
Changes for 0.9.16:
|
||||
*06/04/14:
|
||||
* Fix type of last_release_time, affected double click functions
|
||||
on 64-bit platforms (sf.net #1467871, thanks davidhi) (Simon)
|
||||
FbWinFrame.cc
|
||||
* Fix updating of button state (esp stick/shade) (Simon)
|
||||
(sf.net #1281724, #1213257)
|
||||
FbTk/Button.hh/cc WinButton.cc Window.cc
|
||||
|
|
|
@ -856,7 +856,7 @@ void FbWinFrame::buttonReleaseEvent(XButtonEvent &event) {
|
|||
if (event.button < 1 || event.button > 5)
|
||||
return;
|
||||
|
||||
static int last_release_time = 0;
|
||||
static Time last_release_time = 0;
|
||||
bool double_click = (event.time - last_release_time <= m_double_click_time);
|
||||
last_release_time = event.time;
|
||||
int real_button = event.button - 1;
|
||||
|
|
Loading…
Reference in a new issue