[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[pygame] set_icon not working in 1.4?



Hi,

it looks like pygame.display.set_icon doesn't set an icon in 1.4 - default 
icon is always displayed (it was working correctly in 1.3). Are there any 
new limitations for icons? I've tried both 16x16 and 32x32 images. Sample 
code attached.

I'm using Python 2.1, Pygame 1.4 on Windows NT.

Thanks.

Ludek

-----------------------------------------------------------------------------

# import stuff
import pygame, pygame.image, pygame.font, pygame.time, pygame.version
import pygame.transform
from pygame.locals import *

#initialize SDL and prepare screen
pygame.init()

# set icon
pygame.display.set_icon(pygame.image.load('res/icon32.png'))

# initialize screen
scrnSize = (800, 600)
flags = SWSURFACE
bestdepth = pygame.display.mode_ok(scrnSize, flags)

screen = pygame.display.set_mode(scrnSize, flags, bestdepth)

____________________________________
pygame mailing list
pygame-users@seul.org
http://pygame.seul.org