Window icon is not shown

Bug #184421 reported by Siegfried Gevatter
2
Affects Status Importance Assigned to Milestone
Freevial (Game)
Triaged
Low
Unassigned

Bug Description

I've just noticed that Freevial's window has no icon. I'm not sure when this bug was introduced, but I tried "bzr revert -r150" and it continued without working...

Changed in freevial:
importance: Undecided → Low
milestone: none → garsa
status: New → Confirmed
Revision history for this message
Siegfried Gevatter (rainct) wrote :

Okay, seems that's a problem with my machine... Closing the bug.

Changed in freevial:
status: Confirmed → Invalid
Revision history for this message
Siegfried Gevatter (rainct) wrote :

Actually, it was a problem. I see that it's working now again :).

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.

Changed in freevial:
milestone: garsa → none
status: Invalid → Triaged
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.