screen: remove 25dp height for simulating the android system ui bar

This commit is contained in:
Mathieu Virbel 2013-09-16 12:56:04 +02:00
parent 6ff9ecb1c7
commit b2ac6b8995
1 changed files with 3 additions and 1 deletions

View File

@ -74,7 +74,9 @@ def apply_device(device, scale, orientation):
environ['KIVY_METRICS_DENSITY'] = str(density * scale)
environ['KIVY_DPI'] = str(dpi * scale)
Config.set('graphics', 'width', str(int(width * scale)))
Config.set('graphics', 'height', str(int(height * scale)))
# simulate with the android bar
# FIXME should be configurable
Config.set('graphics', 'height', str(int(height * scale - 25 * density)))
Config.set('graphics', 'fullscreen', '0')
Config.set('graphics', 'show_mousecursor', '1')