diff options
author | AJR <ajrhacker@users.noreply.github.com> | 2017-10-30 09:35:13 -0400 |
---|---|---|
committer | AJR <ajrhacker@users.noreply.github.com> | 2017-10-30 09:35:13 -0400 |
commit | 0ddfd95a5a050648f1662ef2ef5d4eead2a0d564 (patch) | |
tree | fd0ebf058dfe0ee24af3531f79db3fe2f6fbd746 /src/osd | |
parent | ea958c9ccbcea233349cbb65d83b7e35bc83cc83 (diff) |
Rationale (nw)
Diffstat (limited to 'src/osd')
-rw-r--r-- | src/osd/modules/input/input_sdl.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/osd/modules/input/input_sdl.cpp b/src/osd/modules/input/input_sdl.cpp index bc2f9d705d3..a3cbed7c107 100644 --- a/src/osd/modules/input/input_sdl.cpp +++ b/src/osd/modules/input/input_sdl.cpp @@ -250,6 +250,7 @@ public: { 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 && (cx >= last_x - 4 && cx <= last_x + 4) && (cy >= last_y - 4 && cy <= last_y + 4)) |