mirror of
https://github.com/go-vgo/robotgo.git
synced 2025-06-08 09:33:56 +00:00
fix dpi spell
This commit is contained in:
parent
62b865dbef
commit
9c2797ade0
@ -207,7 +207,7 @@ func GetScreenSize() (int, int) {
|
|||||||
|
|
||||||
// Scale get the screen scale
|
// Scale get the screen scale
|
||||||
func Scale() int {
|
func Scale() int {
|
||||||
dip := map[int]int{
|
dpi := map[int]int{
|
||||||
96: 100,
|
96: 100,
|
||||||
120: 125,
|
120: 125,
|
||||||
144: 150,
|
144: 150,
|
||||||
@ -215,7 +215,7 @@ func Scale() int {
|
|||||||
}
|
}
|
||||||
|
|
||||||
x := ScaleX()
|
x := ScaleX()
|
||||||
return dip[x]
|
return dpi[x]
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetScaleSize get the screen scale size
|
// GetScaleSize get the screen scale size
|
||||||
|
Loading…
Reference in New Issue
Block a user