The pygame.display.set_mode there should be called last, but we can't use load_image for the icon if we do that. Trying to load the image and assign it without running .convert on it results in a crash ("Fatal Python error: (pygame parachute) Segmentation Fault"), even if I remove the alpha channel from the logo.
Well, seem like this *is* a bug after all...
------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- game.screen = pygame. display. set_mode( (Global. screen_ x, Global.screen_y)) display. set_caption( 'Freevial' ) display. set_icon( load_image( 'freevial. png')) ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- -------
# initialize presentation surface
Global.
pygame.
pygame.
-------
The pygame. display. set_mode there should be called last, but we can't use load_image for the icon if we do that. Trying to load the image and assign it without running .convert on it results in a crash ("Fatal Python error: (pygame parachute) Segmentation Fault"), even if I remove the alpha channel from the logo.