summaryrefslogtreecommitdiffstats
path: root/win/tkWinPointer.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2024-06-17 13:02:57 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2024-06-17 13:02:57 (GMT)
commita983245e41399dd76602e12f17bc3170de207680 (patch)
tree259f9d0d5c7d566b56ccbd47b46ed7d05ac528c5 /win/tkWinPointer.c
parentc7155c6da59086934fe2e1567f5c3b0335a5b693 (diff)
downloadtk-a983245e41399dd76602e12f17bc3170de207680.zip
tk-a983245e41399dd76602e12f17bc3170de207680.tar.gz
tk-a983245e41399dd76602e12f17bc3170de207680.tar.bz2
Move scrollbar sanity checks from platform-code to generic. Fix indenting in win/* files
Diffstat (limited to 'win/tkWinPointer.c')
-rw-r--r--win/tkWinPointer.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/win/tkWinPointer.c b/win/tkWinPointer.c
index b895a96..5ccd862 100644
--- a/win/tkWinPointer.c
+++ b/win/tkWinPointer.c
@@ -377,8 +377,8 @@ void TkSetCursorPos(
* requested position is off the primary screen.
*/
if ( x < 0 || x > xscreen || y < 0 || y > yscreen ) {
- SetCursorPos(x, y);
- return;
+ SetCursorPos(x, y);
+ return;
}
input.type = INPUT_MOUSE;
@@ -394,7 +394,7 @@ void TkSetCursorPos(
* See ticket [69b48f427e].
*/
if (input.mi.dx == 0 && input.mi.dy == 0) {
- input.mi.dx = 1;
+ input.mi.dx = 1;
}
input.mi.mouseData = 0;