summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorculler <culler>2023-11-25 01:45:00 (GMT)
committerculler <culler>2023-11-25 01:45:00 (GMT)
commit51bf0d373837b488efe77b5d185cd470bc94d8e3 (patch)
treea9f78671d40973f5dfc1dda428a5624a1fb212a0
parentd934fbfe389ed3f79b9b4de6c94e01a928f716ec (diff)
downloadtk-51bf0d373837b488efe77b5d185cd470bc94d8e3.zip
tk-51bf0d373837b488efe77b5d185cd470bc94d8e3.tar.gz
tk-51bf0d373837b488efe77b5d185cd470bc94d8e3.tar.bz2
Fix backwards horizontal scrolling on Windows.
-rw-r--r--win/tkWinX.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/win/tkWinX.c b/win/tkWinX.c
index 54f5d67..d3a2d55 100644
--- a/win/tkWinX.c
+++ b/win/tkWinX.c
@@ -1189,7 +1189,7 @@ GenerateXEvent(
event.x.xany.send_event = -1;
event.key.nbytes = 0;
event.x.xkey.state = state | EXTENDED_MASK ;
- event.x.xkey.keycode = delta << 16;
+ event.x.xkey.keycode = (unsigned int)(-(delta << 16));
} else {
event.x.type = MouseWheelEvent;
event.x.xany.send_event = -1;