Changeset 503:5680d7383717 for nagslang


Ignore:
Timestamp:
Sep 7, 2013, 4:26:21 PM (7 years ago)
Author:
Neil Muller <drnlmuller@…>
Branch:
default
rebase_source:
fbef9142b51a7ef638f9fe90e6ccd77ec220c442
Message:

Tweak surface creation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • nagslang/screens/area.py

    r482 r503  
    227227            return
    228228        background = self._level.get_background()
    229         mysurface = background.copy()
    230         render_rect = self._calc_viewport(mysurface, surface)
     229        render_rect = self._calc_viewport(background, surface)
     230        #mysurface = background.copy()
     231        mysurface = pygame.surface.Surface(background.get_size())
    231232        mysurface.set_clip(render_rect)
     233        mysurface.blit(background, render_rect.topleft, render_rect)
    232234        for drawable in self._drawables:
    233235            drawable.render(mysurface)
Note: See TracChangeset for help on using the changeset viewer.