Comment 3 for bug 184421

Revision history for this message
Siegfried Gevatter (rainct) wrote :

Well, seem like this *is* a bug after all...

------------------------------------------------------------------------------------
  # initialize presentation surface
  Global.game.screen = pygame.display.set_mode((Global.screen_x, Global.screen_y))
  pygame.display.set_caption('Freevial')
  pygame.display.set_icon(load_image('freevial.png'))
------------------------------------------------------------------------------------

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.