mirror of
https://github.com/go-vgo/robotgo
synced 2026-05-24 10:19:01 +00:00
add Custom DPI Scaling support
This commit is contained in:
parent
794cbf87ad
commit
d1ea0fd81b
1 changed files with 6 additions and 0 deletions
|
|
@ -210,10 +210,16 @@ func GetScreenSize() (int, int) {
|
|||
func Scale() int {
|
||||
dpi := map[int]int{
|
||||
0: 100,
|
||||
// DPI Scaling Level
|
||||
96: 100,
|
||||
120: 125,
|
||||
144: 150,
|
||||
192: 200,
|
||||
// Custom DPI
|
||||
240: 250,
|
||||
288: 300,
|
||||
384: 400,
|
||||
480: 500,
|
||||
}
|
||||
|
||||
x := ScaleX()
|
||||
|
|
|
|||
Loading…
Reference in a new issue