add Custom DPI Scaling support

This commit is contained in:
vcaesar 2018-07-24 21:26:53 +08:00
parent 794cbf87ad
commit d1ea0fd81b

View File

@ -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()