diff options
author | culler <culler> | 2024-05-24 19:46:55 (GMT) |
---|---|---|
committer | culler <culler> | 2024-05-24 19:46:55 (GMT) |
commit | 9317a30b3627fcf0010375bf708cc3fb5432a915 (patch) | |
tree | 5b23b82dcefc1ffd430c4eff6c38a118d95991b6 /win | |
parent | 285f6cdbf8bad836d1de14c2dd11f7e86daeeb8e (diff) | |
download | tk-9317a30b3627fcf0010375bf708cc3fb5432a915.zip tk-9317a30b3627fcf0010375bf708cc3fb5432a915.tar.gz tk-9317a30b3627fcf0010375bf708cc3fb5432a915.tar.bz2 |
Deal with compiler warnings when building with mingw gcc on Windows.
Diffstat (limited to 'win')
-rw-r--r-- | win/tkWinWm.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/win/tkWinWm.c b/win/tkWinWm.c index c387111..31fa03f 100644 --- a/win/tkWinWm.c +++ b/win/tkWinWm.c @@ -2579,12 +2579,14 @@ TkpWmGetState( static void CheckForPointer(TkWindow *winPtr) { - Display *display = Tk_Display(winPtr); POINT mouse; + int x, y; unsigned int state = TkWinGetModifierState(); TkWindow **windows = TkWmStackorderToplevel(winPtr->mainPtr->winPtr); TkWindow **w; - TkGetPointerCoords(NULL, &mouse.x, &mouse.y); + x = (int) mouse.x; + y = (int) mouse.y; + TkGetPointerCoords(NULL, &x, &y); if (windows != NULL) { for (w = windows; *w ; w++) { RECT windowRect; @@ -2593,10 +2595,8 @@ static void CheckForPointer(TkWindow *winPtr) continue; } if (winPtr != *w && PtInRect(&windowRect, mouse)) { - Tk_Window target = Tk_CoordsToWindow(mouse.x, mouse.y, - (Tk_Window) *w); - Tk_UpdatePointer((Tk_Window) target, - mouse.x, mouse.y, state); + Tk_Window target = Tk_CoordsToWindow(x, y, (Tk_Window) *w); + Tk_UpdatePointer((Tk_Window) target, x, y, state); break; } } |