diff options
author | Alexander Neumann <alexander.neumann@picos-software.com> | 2019-11-28 12:02:35 +0100 |
---|---|---|
committer | Alexander Neumann <alexander.neumann@picos-software.com> | 2019-11-28 12:02:35 +0100 |
commit | c202aa98e15b14248d0048434362602fc896303e (patch) | |
tree | 89c76b5de7406ea3bceb300a8f7add44be57ec5a | |
parent | static: Remove pointless code (diff) | |
download | wireguard-windows-c202aa98e15b14248d0048434362602fc896303e.tar.xz wireguard-windows-c202aa98e15b14248d0048434362602fc896303e.zip |
static: Use GET_[X|Y]_LPARAM to extract coordinates from LPARAM
-rw-r--r-- | static.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -294,7 +294,7 @@ func staticWndProc(hwnd win.HWND, msg uint32, wp, lp uintptr) uintptr { Message: msg, WParam: wp, LParam: lp, - Pt: win.POINT{int32(win.LOWORD(uint32(lp))), int32(win.HIWORD(uint32(lp)))}, + Pt: win.POINT{int32(win.GET_X_LPARAM(lp)), int32(win.GET_Y_LPARAM(lp))}, } return s.group.toolTip.SendMessage(win.TTM_RELAYEVENT, 0, uintptr(unsafe.Pointer(&m))) |