From 4150fcf8ef0f75362c5a93fcb5d8be491b9863b0 Mon Sep 17 00:00:00 2001 From: Mathieu Virbel Date: Thu, 6 Dec 2012 18:53:35 +0100 Subject: [PATCH] window: fix fullscreen when auto is used. closes #831 #830. --- kivy/core/window/window_pygame.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/kivy/core/window/window_pygame.py b/kivy/core/window/window_pygame.py index 9a66f2c52..bf4256e69 100644 --- a/kivy/core/window/window_pygame.py +++ b/kivy/core/window/window_pygame.py @@ -16,7 +16,6 @@ from kivy import kivy_home_dir from kivy.base import ExceptionManager from kivy.logger import Logger from kivy.base import stopTouchApp, EventLoop -from kivy.clock import Clock from kivy.utils import platform try: @@ -85,7 +84,7 @@ class WindowPygame(WindowBase): self._pos = (0, 0) environ['SDL_VIDEO_WINDOW_POS'] = '%d,%d' % self._pos - elif self.fullscreen is True: + elif self.fullscreen in ('auto', True): Logger.debug('WinPygame: Set window to fullscreen mode') self.flags |= pygame.FULLSCREEN