Changeset 387:ca89d566f9ef for nagslang


Ignore:
Timestamp:
Sep 6, 2013, 10:10:20 PM (7 years ago)
Author:
Neil Muller <drnlmuller@…>
Branch:
default
Message:

Drop unused alpha bit from tile_surface helper

File:
1 edited

Legend:

Unmodified
Added
Removed
  • nagslang/utils.py

    r362 r387  
    2929
    3030
    31 def tile_surface(size, tile_image, alpha=255):
     31def tile_surface(size, tile_image):
    3232    # create a surface, approriately tiled
    3333    surface = pygame.surface.Surface(size, pgl.SRCALPHA)
    34     surface.fill(pygame.color.Color(0, 0, 0, alpha))
    3534    x_step = tile_image.get_rect().width
    3635    y_step = tile_image.get_rect().height
Note: See TracChangeset for help on using the changeset viewer.