fix dpi spell

This commit is contained in:
vcaesar 2018-07-09 23:33:59 +08:00
parent 62b865dbef
commit 9c2797ade0

View File

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