On Fri, 2006-06-02 at 18:03 -0400, Kris Schnee wrote:
foo = pygame.image.load( filename ).convert()
Calling convert() with no arguments will change the surface pixel format to match what is on the screen. This will give the fastest blit calls, but also means pixel alpha will be removed.
There is a similar convert_alpha() which will convert the image into the best format for the screen, but adding or keeping the per pixel alpha.
Strangely, it doesn't seem to work -- still.
tiles[1] = pygame.image.load("tile1.png").convert_alpha()