mirror of
https://github.com/go-vgo/robotgo.git
synced 2025-05-31 06:13:55 +00:00
add scaled function code
This commit is contained in:
parent
0e570e2eb9
commit
730e7537bf
@ -220,6 +220,11 @@ func SysScale() float64 {
|
||||
return float64(s)
|
||||
}
|
||||
|
||||
// Scaled x * sys-scale
|
||||
func Scaled(x int) int {
|
||||
return int(float64(x) * SysScale())
|
||||
}
|
||||
|
||||
// ScaleY get primary display vertical DPI scale factor
|
||||
func ScaleY() int {
|
||||
return int(C.scale_y())
|
||||
|
Loading…
Reference in New Issue
Block a user