diff --git a/fofix/core/Video.py b/fofix/core/Video.py index c4fe64b87..3a509797f 100644 --- a/fofix/core/Video.py +++ b/fofix/core/Video.py @@ -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