From 48a077dfdb3571e63dc917e03a4429b21609810c Mon Sep 17 00:00:00 2001 From: fvogel Date: Thu, 14 Nov 2019 23:32:01 +0000 Subject: remove debug printf code --- win/tkWinPointer.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/win/tkWinPointer.c b/win/tkWinPointer.c index 726f663..2b8656b 100644 --- a/win/tkWinPointer.c +++ b/win/tkWinPointer.c @@ -364,13 +364,10 @@ void TkSetCursorPos( INPUT input; unsigned xscreen = (GetSystemMetrics(SM_CXSCREEN) - 1); unsigned yscreen = (GetSystemMetrics(SM_CYSCREEN) - 1); -printf("x = %d, y = %d\n",x,y); -printf("xscreen = %d, yscreen = %d\n",xscreen,yscreen); input.type = INPUT_MOUSE; input.mi.dx = (x * 65535 + xscreen/2) / xscreen; input.mi.dy = (y * 65535 + yscreen/2) / yscreen; -printf("input.mi.dx = %d, input.mi.dy = %d\n",input.mi.dx,input.mi.dy); input.mi.mouseData = 0; input.mi.dwFlags = MOUSEEVENTF_ABSOLUTE | MOUSEEVENTF_MOVE; input.mi.time = 0; -- cgit v0.12 From fa4d52dc5b517526f33d2ea80f12a405a7a24328 Mon Sep 17 00:00:00 2001 From: fvogel Date: Thu, 14 Nov 2019 23:32:53 +0000 Subject: Fix again integer arithmetics in TkSetCursorPos(), see [69b48f427e] --- win/tkWinPointer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/win/tkWinPointer.c b/win/tkWinPointer.c index 2b8656b..e7e041f 100644 --- a/win/tkWinPointer.c +++ b/win/tkWinPointer.c @@ -362,8 +362,8 @@ void TkSetCursorPos( int y) { INPUT input; - unsigned xscreen = (GetSystemMetrics(SM_CXSCREEN) - 1); - unsigned yscreen = (GetSystemMetrics(SM_CYSCREEN) - 1); + int xscreen = (int)(GetSystemMetrics(SM_CXSCREEN) - 1); + int yscreen = (int)(GetSystemMetrics(SM_CYSCREEN) - 1); input.type = INPUT_MOUSE; input.mi.dx = (x * 65535 + xscreen/2) / xscreen; -- cgit v0.12