window: and handle also the case without multisample activated.

This commit is contained in:
Mathieu Virbel 2012-01-20 23:49:59 +01:00
parent ba3d349666
commit c05458af99
1 changed files with 2 additions and 3 deletions

View File

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