Skip to content

Commit

Permalink
Tolerate missing icon
Browse files Browse the repository at this point in the history
  • Loading branch information
wrzwicky committed Nov 3, 2017
1 parent ba1938f commit c1f6350
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fofix/core/Video.py
Expand Up @@ -92,7 +92,7 @@ def setMode(self, resolution, fullscreen = False, flags = pygame.OPENGL | pygame
# a bug in SDL, the alpha channel is lost and some parts of the image are
# corrupted. As a result, we go the long way and load and set the icon
# by hand to work around the bug.
if os.name == 'nt':
if os.name == 'nt' and self.icon:
import win32api
import win32gui
import win32con
Expand Down

0 comments on commit c1f6350

Please sign in to comment.