Ignore:
Timestamp:
09/07/13 16:26:21 (8 years ago)
Author:
Neil Muller <drnlmuller@…>
Branch:
default
Phase:
public
Rebase:
66626566393134326235316137656636333866396665393065366363643737656332323063343432
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.