Skip to content

Commit

Permalink
Merge pull request #651 from rustfix/master
Browse files Browse the repository at this point in the history
chore: fix function names in comment
  • Loading branch information
vcaesar committed Apr 15, 2024
2 parents b718cf4 + 05c54c6 commit ffbf4f8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion robotgo_win.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
Expand Down
2 changes: 1 addition & 1 deletion robotgo_x11.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
4 changes: 2 additions & 2 deletions screen.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down

0 comments on commit ffbf4f8

Please sign in to comment.