From 708278a48dac6c6f68cf0d4304acaca25a311331 Mon Sep 17 00:00:00 2001 From: vcaesar Date: Tue, 2 Feb 2021 10:17:38 -0400 Subject: [PATCH] update point to public --- robotgo.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/robotgo.go b/robotgo.go index 3cdc1ff..9a4089e 100644 --- a/robotgo.go +++ b/robotgo.go @@ -99,8 +99,8 @@ type Bitmap struct { // MPoint is MPoint struct type MPoint struct { - x int - y int + X int + Y int } // Try handler(err) @@ -1068,8 +1068,8 @@ func FindEveryBitmap(bit C.MMBitmapRef, args ...interface{}) (posArr []MPoint) { gSlice := (*[(1 << 28) - 1]C.MMPoint)(unsafe.Pointer(cArray))[:cSize:cSize] for i := 0; i < len(gSlice); i++ { posArr = append(posArr, MPoint{ - x: int(gSlice[i].x), - y: int(gSlice[i].y), + X: int(gSlice[i].x), + Y: int(gSlice[i].y), }) } @@ -1363,8 +1363,8 @@ func FindEveryColor(color CHex, args ...interface{}) (posArr []MPoint) { gSlice := (*[(1 << 28) - 1]C.MMPoint)(unsafe.Pointer(cArray))[:cSize:cSize] for i := 0; i < len(gSlice); i++ { posArr = append(posArr, MPoint{ - x: int(gSlice[i].x), - y: int(gSlice[i].y), + X: int(gSlice[i].x), + Y: int(gSlice[i].y), }) }