mirror of https://github.com/kivy/kivy.git
window: and handle also the case without multisample activated.
This commit is contained in:
parent
ba3d349666
commit
c05458af99
|
@ -105,7 +105,7 @@ class WindowPygame(WindowBase):
|
||||||
# try to use mode with multisamples
|
# try to use mode with multisamples
|
||||||
try:
|
try:
|
||||||
self._pygame_set_mode()
|
self._pygame_set_mode()
|
||||||
except pygame.error:
|
except pygame.error, e:
|
||||||
if multisamples:
|
if multisamples:
|
||||||
Logger.warning('WinPygame: Video: failed (multisamples=%d)' %
|
Logger.warning('WinPygame: Video: failed (multisamples=%d)' %
|
||||||
multisamples)
|
multisamples)
|
||||||
|
@ -118,8 +118,7 @@ class WindowPygame(WindowBase):
|
||||||
except pygame.error, e:
|
except pygame.error, e:
|
||||||
raise CoreCriticalException(e.message)
|
raise CoreCriticalException(e.message)
|
||||||
else:
|
else:
|
||||||
Logger.warning('WinPygame: Video setup failed :-(')
|
raise CoreCriticalException(e.message)
|
||||||
raise
|
|
||||||
|
|
||||||
super(WindowPygame, self).create_window()
|
super(WindowPygame, self).create_window()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue