Added groundwork for supporting a better resolution

This commit is contained in:
frank
2015-05-22 00:47:46 -04:00
parent 292379a638
commit 3a503ed48a
4 changed files with 19 additions and 15 deletions

View File

@@ -25,7 +25,7 @@ class TouchScreen(pykka.ThreadingActor, core.CoreListener):
self.fullscreen = config['touchscreen']['fullscreen']
self.screen_size = (config['touchscreen']['screen_width'],
config['touchscreen']['screen_height'])
self.resolution_factor = (config['touchscreen']['resolution_factor'])
if config['touchscreen']['sdl_fbdev'].lower() != "none":
os.environ["SDL_FBDEV"] = config['touchscreen']['sdl_fbdev']
if config['touchscreen']['sdl_mousdrv'].lower() != "none":
@@ -46,7 +46,8 @@ class TouchScreen(pykka.ThreadingActor, core.CoreListener):
pygame.mouse.set_visible(self.cursor)
self.screen_manager = ScreenManager(self.screen_size,
self.core,
self.cache_dir)
self.cache_dir,
self.resolution_factor)
# Raspberry pi GPIO
self.gpio = config['touchscreen']['gpio']