From 05c54c6f259c2366673744796152396774597204 Mon Sep 17 00:00:00 2001 From: rustfix <771054535@qq.com> Date: Mon, 15 Apr 2024 11:37:14 +0800 Subject: [PATCH] chore: fix function names in comment Signed-off-by: rustfix <771054535@qq.com> --- robotgo_win.go | 2 +- robotgo_x11.go | 2 +- screen.go | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/robotgo_win.go b/robotgo_win.go index d2208bc..e99823c 100644 --- a/robotgo_win.go +++ b/robotgo_win.go @@ -57,7 +57,7 @@ func SetForeg(hwnd win.HWND) bool { return win.SetForegroundWindow(hwnd) } -// GetMian get the main display hwnd +// GetMain get the main display hwnd func GetMain() win.HWND { return win.GetActiveWindow() } diff --git a/robotgo_x11.go b/robotgo_x11.go index 26355a1..97aa915 100644 --- a/robotgo_x11.go +++ b/robotgo_x11.go @@ -190,7 +190,7 @@ func DisplaysNum() int { return int(reply.Number) } -// GetMianId get the main display id +// GetMainId get the main display id func GetMainId() int { conn, err := xgb.NewConn() if err != nil { diff --git a/screen.go b/screen.go index e0eca41..e6b7a16 100644 --- a/screen.go +++ b/screen.go @@ -16,13 +16,13 @@ import ( "github.com/kbinani/screenshot" ) -// GetScreenBound gets the display screen bounds +// GetDisplayBounds gets the display screen bounds func GetDisplayBounds(i int) (x, y, w, h int) { bs := screenshot.GetDisplayBounds(i) return bs.Min.X, bs.Min.Y, bs.Dx(), bs.Dy() } -// GetDisplayBounds gets the display rect +// GetDisplayRect gets the display rect func GetDisplayRect(i int) Rect { x, y, w, h := GetDisplayBounds(i) return Rect{