window: fix fullscreen when auto is used. closes #831 #830.

This commit is contained in:
Mathieu Virbel 2012-12-06 18:53:35 +01:00
parent e1954eebe8
commit 4150fcf8ef
1 changed files with 1 additions and 2 deletions

View File

@ -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