mirror of https://github.com/kivy/kivy.git
window: capture error on pygame.display.set_mode too.
This commit is contained in:
parent
343d71b495
commit
ba3d349666
|
@ -68,8 +68,8 @@ else:
|
|||
except CoreCriticalException as e:
|
||||
Logger.error('%s: Unable to use <%s> as %s'
|
||||
'provider' % (category.capitalize(), option, category))
|
||||
Logger.error('%s: The module raised an important error' %
|
||||
(category.capitalize()))
|
||||
Logger.error('%s: The module raised an important error: %r' %
|
||||
(category.capitalize(), e.message))
|
||||
raise
|
||||
|
||||
except Exception as e:
|
||||
|
|
|
@ -113,7 +113,10 @@ class WindowPygame(WindowBase):
|
|||
pygame.display.gl_set_attribute(pygame.GL_MULTISAMPLEBUFFERS, 0)
|
||||
pygame.display.gl_set_attribute(pygame.GL_MULTISAMPLESAMPLES, 0)
|
||||
multisamples = 0
|
||||
self._pygame_set_mode()
|
||||
try:
|
||||
self._pygame_set_mode()
|
||||
except pygame.error, e:
|
||||
raise CoreCriticalException(e.message)
|
||||
else:
|
||||
Logger.warning('WinPygame: Video setup failed :-(')
|
||||
raise
|
||||
|
|
Loading…
Reference in New Issue