Changeset 58:04e83cf43329


Ignore:
Timestamp:
04/03/11 19:41:43 (12 years ago)
Author:
Neil Muller <drnlmuller@…>
Branch:
default
Phase:
public
Rebase:
36303830623233666661333833616231376536656435353934323835616464636565333433313462
Message:

Add convert_alpha to load_image

File:
1 edited

Legend:

Unmodified
Added
Removed
  • skaapsteker/data.py

    r8 r58  
    1212
    1313import pygame.image
     14import pygame.display
    1415
    1516
     
    3738    if filename not in IMAGES:
    3839        IMAGES[filename] = pygame.image.load(load(filename))
     40        if pygame.display.get_init():
     41            IMAGES[filename] = IMAGES[filename].convert_alpha(pygame.display.get_surface())
    3942    return IMAGES[filename]
    4043
Note: See TracChangeset for help on using the changeset viewer.