mirror of https://github.com/kivy/kivy.git
metrics: fix ios scale proportion compared to android/desktop
This commit is contained in:
parent
42fb4c69c5
commit
5776d9e017
|
@ -193,8 +193,9 @@ class Metrics(object):
|
|||
Hardware = jnius.autoclass('org.renpy.android.Hardware')
|
||||
return Hardware.metrics.scaledDensity
|
||||
elif platform() == 'ios':
|
||||
# 0.75 is for mapping the same density as android tablet
|
||||
import ios
|
||||
return ios.get_scale()
|
||||
return ios.get_scale() * 0.75
|
||||
|
||||
return 1.0
|
||||
|
||||
|
|
Loading…
Reference in New Issue