mirror of
https://github.com/go-vgo/robotgo.git
synced 2025-06-04 16:03:54 +00:00
add Custom DPI Scaling support
This commit is contained in:
parent
794cbf87ad
commit
d1ea0fd81b
@ -210,10 +210,16 @@ func GetScreenSize() (int, int) {
|
|||||||
func Scale() int {
|
func Scale() int {
|
||||||
dpi := map[int]int{
|
dpi := map[int]int{
|
||||||
0: 100,
|
0: 100,
|
||||||
|
// DPI Scaling Level
|
||||||
96: 100,
|
96: 100,
|
||||||
120: 125,
|
120: 125,
|
||||||
144: 150,
|
144: 150,
|
||||||
192: 200,
|
192: 200,
|
||||||
|
// Custom DPI
|
||||||
|
240: 250,
|
||||||
|
288: 300,
|
||||||
|
384: 400,
|
||||||
|
480: 500,
|
||||||
}
|
}
|
||||||
|
|
||||||
x := ScaleX()
|
x := ScaleX()
|
||||||
|
Loading…
Reference in New Issue
Block a user