mirror of
https://github.com/holub/mame
synced 2025-07-01 16:19:38 +03:00
Rationale (nw)
This commit is contained in:
parent
ea958c9ccb
commit
0ddfd95a5a
@ -250,6 +250,7 @@ public:
|
|||||||
{
|
{
|
||||||
machine().ui_input().push_mouse_down_event(window->target(), cx, cy);
|
machine().ui_input().push_mouse_down_event(window->target(), cx, cy);
|
||||||
|
|
||||||
|
// avoid overflow with std::chrono::time_point::min() by adding rather than subtracting
|
||||||
if (click < last_click + double_click_speed
|
if (click < last_click + double_click_speed
|
||||||
&& (cx >= last_x - 4 && cx <= last_x + 4)
|
&& (cx >= last_x - 4 && cx <= last_x + 4)
|
||||||
&& (cy >= last_y - 4 && cy <= last_y + 4))
|
&& (cy >= last_y - 4 && cy <= last_y + 4))
|
||||||
|
Loading…
Reference in New Issue
Block a user