Changeset 185faa0 in python-game for game.py


Ignore:
Timestamp:
Apr 13, 2017, 12:49:40 AM (8 years ago)
Author:
Dmitry Portnoy <dmitry.portnoy@…>
Branches:
master
Parents:
2876668
Message:

Create a workaround for the osx fullscreen bug

File:
1 edited

Legend:

Unmodified
Added
Removed
  • game.py

    r2876668 r185faa0  
    150150   [w, h] = [800, 600]
    151151   gameDisplay = pygame.display.set_mode((w, h), pygame.DOUBLEBUF|pygame.OPENGL)
     152elif system == 'Darwin':
     153   # get around the osx opengl fullscreen bug
     154   # I should also see if this bug occurs in pygame without opengl
     155   gameDisplay = pygame.display.set_mode((w, h), pygame.DOUBLEBUF|pygame.OPENGL)
    152156else:
    153157   gameDisplay = pygame.display.set_mode((w, h), pygame.FULLSCREEN|pygame.DOUBLEBUF|pygame.OPENGL)
Note: See TracChangeset for help on using the changeset viewer.