Changeset 128:fbb073720bac


Ignore:
Timestamp:
Sep 2, 2013, 3:23:13 PM (7 years ago)
Author:
Neil Muller <drnlmuller@…>
Branch:
default
Message:

Fill screen with black on scene changes, so small levels aren't surrounded by old cruft

File:
1 edited

Legend:

Unmodified
Added
Removed
  • nagslang/engine.py

    r85 r128  
    3939                elif ev.type == pgl.VIDEORESIZE:
    4040                    pygame.display.set_mode(ev.size,
    41                             pgl.SWSURFACE | pgl.RESIZABLE)
     41                                            pgl.SWSURFACE | pgl.RESIZABLE)
    4242                    self._surface = pygame.display.get_surface()
    4343                elif ScreenChange.matches(ev):
     44                    self._surface.fill(pygame.color.Color(0, 0, 0))
    4445                    self.change_screen(ev.screen)
    4546                else:
Note: See TracChangeset for help on using the changeset viewer.