Changeset 482:1b7accf22999 for nagslang


Ignore:
Timestamp:
Sep 7, 2013, 3:07:07 PM (7 years ago)
Author:
Simon Cross <hodgestar@…>
Branch:
default
Message:

Set clip rect on mysurface.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • nagslang/screens/area.py

    r480 r482  
    228228        background = self._level.get_background()
    229229        mysurface = background.copy()
     230        render_rect = self._calc_viewport(mysurface, surface)
     231        mysurface.set_clip(render_rect)
    230232        for drawable in self._drawables:
    231233            drawable.render(mysurface)
    232         render_rect = self._calc_viewport(mysurface, surface)
    233234        surface.blit(mysurface, (0, 0), render_rect)
    234235        # Maximum width we allow for overlays
Note: See TracChangeset for help on using the changeset viewer.