diff options
author | culler <culler> | 2024-07-31 12:23:06 (GMT) |
---|---|---|
committer | culler <culler> | 2024-07-31 12:23:06 (GMT) |
commit | cdcc6a05ddb15fb2573299a6f72d2a15c9db4c91 (patch) | |
tree | 7beab26fe4110c1366a08213c2be458657e81f7e | |
parent | 83ba9e91932f82eb033d14cdfd3eede0dec15e61 (diff) | |
download | tk-cdcc6a05ddb15fb2573299a6f72d2a15c9db4c91.zip tk-cdcc6a05ddb15fb2573299a6f72d2a15c9db4c91.tar.gz tk-cdcc6a05ddb15fb2573299a6f72d2a15c9db4c91.tar.bz2 |
Fix [7a17cfd1b5]: with windows hires scrolling, sign extension was causing deltax to be -1 whenever deltay was negative.
-rw-r--r-- | win/tkWinX.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/win/tkWinX.c b/win/tkWinX.c index 656e142..c61601b 100644 --- a/win/tkWinX.c +++ b/win/tkWinX.c @@ -1165,7 +1165,7 @@ GenerateXEvent( event.key.nbytes = 0; event.x.xkey.state = state; event.x.xany.serial = scrollCounter++; - event.x.xkey.keycode = (unsigned int) delta; + event.x.xkey.keycode = (unsigned int) (delta & 0xffff); } else { event.x.type = MouseWheelEvent; event.x.xany.send_event = -1; |