From 0a69ed90af23e175c4099d0c571ea1799961531c Mon Sep 17 00:00:00 2001
From: vcaesar <vzvway@gmail.com>
Date: Sun, 14 Nov 2021 16:36:48 -0400
Subject: [PATCH] fixed typo error

---
 robotgo_win.go | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/robotgo_win.go b/robotgo_win.go
index ba7bb58..a7abba8 100644
--- a/robotgo_win.go
+++ b/robotgo_win.go
@@ -49,7 +49,7 @@ func SetActiveWindow(hwnd win.HWND) win.HWND {
 
 // SetFocus set window focus with hwnd
 func SetFocus(hwnd win.HWND) win.HWND {
-	return win.SetFocus(hWnd)
+	return win.SetFocus(hwnd)
 }
 
 // ScaleF get the system scale val
@@ -69,5 +69,5 @@ func GetDPI(hwnd win.HWND) uint32 {
 
 // GetSysDPI get the system metrics dpi
 func GetSysDPI(idx int32, dpi uint32) int32 {
-	return win.GetSystemMetricsForDpi(idex, dpi)
+	return win.GetSystemMetricsForDpi(idx, dpi)
 }