aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Bouclet2017-11-19 20:07:51 +0100
committerBastien Bouclet2017-11-19 20:07:51 +0100
commitbc5ac6440ca8e62d40c68b40af2eb49f0da2c633 (patch)
tree2d67c10524b6cf80f55456e8e0c9a2e069dbdc53
parent8fc70ce37fee8880b12d64c420c0c6c296f551d2 (diff)
downloadscummvm-rg350-bc5ac6440ca8e62d40c68b40af2eb49f0da2c633.tar.gz
scummvm-rg350-bc5ac6440ca8e62d40c68b40af2eb49f0da2c633.tar.bz2
scummvm-rg350-bc5ac6440ca8e62d40c68b40af2eb49f0da2c633.zip
EVENTS: Fix one ms error in repeat event generation time check
-rw-r--r--backends/events/default/default-events.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/backends/events/default/default-events.cpp b/backends/events/default/default-events.cpp
index 455fb98495..8dd9599d20 100644
--- a/backends/events/default/default-events.cpp
+++ b/backends/events/default/default-events.cpp
@@ -247,7 +247,7 @@ void DefaultEventManager::handleKeyRepeat() {
}
} else {
// Check if event should be sent again (keydown)
- if (_currentKeyDown.keycode != Common::KEYCODE_INVALID && _keyRepeatTime < time) {
+ if (_currentKeyDown.keycode != Common::KEYCODE_INVALID && _keyRepeatTime <= time) {
// fire event
Common::Event repeatEvent;
repeatEvent.type = Common::EVENT_KEYDOWN;