Commits

Anonymous committed d4638e1

cleaner set_mode

  • Participants
  • Parent commits 92e9204

Comments (0)

Files changed (1)

examples/aliens.py

 
     # Initialize SDL components
     pygame.init()
-    screen = pygame.display.set_mode(SCREENRECT.size, winstyle)
+    bestdepth = pygame.display.mode_ok(SCREENRECT.size, winstyle, 32)
+    screen = pygame.display.set_mode(SCREENRECT.size, winstyle, bestdepth)
 
     if pygame.joystick.get_init() and pygame.joystick.get_count():
         joy = pygame.joystick.Joystick(0)