diff options
| author | Pietro Gagliardi <[email protected]> | 2014-05-25 01:03:45 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-05-25 01:03:45 -0400 |
| commit | b27caae7c3b66a1acf89e871fc5a1b8459572527 (patch) | |
| tree | 51a1e7e8e6f572fd3fa7bb835897a298c76391db /area_windows.go | |
| parent | 4408c1bf42e6b7cb46783eac464add017cfd12a6 (diff) | |
Renamed _LPARAM._X()/_LPARAM._Y() to _LPARAM.X()/_LPARAM.Y(): it doesn't matter since _LPARAM is not exported anyway, _WPARAM already had this change, and the constant checking tool complains that _X()/_Y() remain undefined (too early? do I need to merge the package files?).
Diffstat (limited to 'area_windows.go')
| -rw-r--r-- | area_windows.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/area_windows.go b/area_windows.go index 943c5af..6daf4bf 100644 --- a/area_windows.go +++ b/area_windows.go @@ -474,8 +474,8 @@ func areaMouseEvent(s *sysData, button uint, up bool, wparam _WPARAM, lparam _LP var me MouseEvent xpos, ypos := getScrollPos(s.hwnd) // mouse coordinates are relative to control; make them relative to Area - xpos += lparam._X() - ypos += lparam._Y() + xpos += lparam.X() + ypos += lparam.Y() me.Pos = image.Pt(int(xpos), int(ypos)) if !me.Pos.In(image.Rect(0, 0, s.areawidth, s.areaheight)) { // outside the actual Area; no event return |
