summaryrefslogtreecommitdiff
path: root/area_windows.go
diff options
context:
space:
mode:
Diffstat (limited to 'area_windows.go')
-rw-r--r--area_windows.go4
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