diff options
| author | Rémi Verschelde | 2017-07-08 23:51:53 +0200 |
|---|---|---|
| committer | GitHub | 2017-07-08 23:51:53 +0200 |
| commit | d23fc16b2d91fec1b6c9d97c4429bdbd09d4eb00 (patch) | |
| tree | 7b83394ae29c9e2d195892aece1a26f451376e21 /platform | |
| parent | e577c5b0705168177943fcdf9a0b66c1f8f864f3 (diff) | |
| parent | 2fd204c35e6883d36d4c15adbe6725ffffd73c6f (diff) | |
| download | godot-d23fc16b2d91fec1b6c9d97c4429bdbd09d4eb00.tar.gz godot-d23fc16b2d91fec1b6c9d97c4429bdbd09d4eb00.tar.zst godot-d23fc16b2d91fec1b6c9d97c4429bdbd09d4eb00.zip | |
Merge pull request #9564 from Noshyaar/pr-threshold
Refactor 'treshold' to 'threshold'
Diffstat (limited to 'platform')
| -rw-r--r-- | platform/x11/os_x11.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/platform/x11/os_x11.cpp b/platform/x11/os_x11.cpp index f2754cc18..790182794 100644 --- a/platform/x11/os_x11.cpp +++ b/platform/x11/os_x11.cpp @@ -1260,7 +1260,7 @@ void OS_X11::handle_key_event(XKeyEvent *p_event, bool p_echo) { // Echo characters in X11 are a keyrelease and a keypress // one after the other with the (almot) same timestamp. // To detect them, i use XPeekEvent and check that their - // difference in time is below a treshold. + // difference in time is below a threshold. if (xkeyevent->type != KeyPress) { @@ -1272,7 +1272,7 @@ void OS_X11::handle_key_event(XKeyEvent *p_event, bool p_echo) { XEvent peek_event; XPeekEvent(x11_display, &peek_event); - // I'm using a treshold of 5 msecs, + // I'm using a threshold of 5 msecs, // since sometimes there seems to be a little // jitter. I'm still not convinced that all this approach // is correct, but the xorg developers are |
