Skip to content

Commit

Permalink
Merge pull request #2769 from Matiiss/matiiss-fix-aliens-example
Browse files Browse the repository at this point in the history
Remove undefined variable in aliens.py
  • Loading branch information
Starbuck5 authored Mar 27, 2024
2 parents 8e87331 + 84b2dab commit be49061
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions examples/aliens.py
Original file line number Diff line number Diff line change
Expand Up @@ -314,15 +314,13 @@ def main(winstyle=0):
print("Changing to FULLSCREEN")
screen_backup = screen.copy()
screen = pygame.display.set_mode(
SCREENRECT.size, winstyle | pygame.FULLSCREEN, bestdepth
SCREENRECT.size, winstyle | pygame.FULLSCREEN
)
screen.blit(screen_backup, (0, 0))
else:
print("Changing to windowed mode")
screen_backup = screen.copy()
screen = pygame.display.set_mode(
SCREENRECT.size, winstyle, bestdepth
)
screen = pygame.display.set_mode(SCREENRECT.size, winstyle)
screen.blit(screen_backup, (0, 0))
pygame.display.flip()
fullscreen = not fullscreen
Expand Down

0 comments on commit be49061

Please sign in to comment.