Show
Ignore:
Timestamp:
01/04/07 03:56:43 (5 years ago)
Author:
mg
Message:

Use 800x600 by default.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/pyspacewar/ui.py

    r234 r235  
    18991899    def _choose_best_mode(self): 
    19001900        """Choose a suitable display mode.""" 
    1901         for mode in pygame.display.list_modes(): 
    1902             if mode_looks_sane(mode): 
    1903                 return mode 
    1904         return (1024, 768) # *shrug* 
     1901        # Previously this function used to pick the largest sane video mode 
     1902        # Sadly, my laptop is not fast enough to sustain 20 fps at 1024x768 
     1903        # when there are too many missiles around. 
     1904        return (800, 600) 
    19051905 
    19061906    def _set_display_mode(self):