Ignore:
Timestamp:
09/08/13 00:02:09 (8 years ago)
Author:
Stefano Rivera <stefano@…>
Branch:
default
Phase:
public
Amend:
32373764393833386438663536333765363938623938646366313930383661646535333834313632
Message:

Show splash image on startup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • nagslang/render.py

    r609 r647  
    243243
    244244
     245class ImageOverlay(Overlay):
     246    def __init__(self, image):
     247        self.image = image
     248
     249    def render(self, surface, display_offset, max_width):
     250        x = (surface.get_width() - self.image.get_width()) / 2
     251        y = (surface.get_height() - self.image.get_height()) / 2
     252        surface.blit(self.image, (x, y))
     253
     254
    245255class TiledRenderer(Renderer):
    246256    """Tile the given image to fit the given outline
Note: See TracChangeset for help on using the changeset viewer.