Mercurial > nagslang
changeset 387:ca89d566f9ef
Drop unused alpha bit from tile_surface helper
author | Neil Muller <drnlmuller@gmail.com> |
---|---|
date | Sat, 07 Sep 2013 00:10:20 +0200 |
parents | 6daf48763bc0 |
children | 8a65fd894f73 |
files | nagslang/utils.py |
diffstat | 1 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/nagslang/utils.py Fri Sep 06 23:59:49 2013 +0200 +++ b/nagslang/utils.py Sat Sep 07 00:10:20 2013 +0200 @@ -28,10 +28,9 @@ return vec -def tile_surface(size, tile_image, alpha=255): +def tile_surface(size, tile_image): # create a surface, approriately tiled surface = pygame.surface.Surface(size, pgl.SRCALPHA) - surface.fill(pygame.color.Color(0, 0, 0, alpha)) x_step = tile_image.get_rect().width y_step = tile_image.get_rect().height x_count = size[0] // x_step + 1