diff --git a/photoboite.py b/photoboite.py index 83ee2f1..83218c3 100755 --- a/photoboite.py +++ b/photoboite.py @@ -124,7 +124,8 @@ class Photoboite: def screen(self): if os.getenv('DISPLAY'): pygame.display.init() - return pygame.display.set_mode((1280, 768)) + display = pygame.display.Info() + return pygame.display.set_mode((min(1280,display.current_w), min(720,display.current_h))) else: drivers = ['directfb', 'fbcon', 'svgalib'] found = False