Changeset 2876668 in python-game
- Timestamp:
- Apr 6, 2017, 1:19:37 AM (8 years ago)
- Branches:
- master
- Children:
- 185faa0
- Parents:
- 114fd09
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
game.py
r114fd09 r2876668 7 7 8 8 [w, h] = [0, 0] 9 fullscreen = True 9 10 10 11 def render(surface, overlay, font, showOverlay): … … 145 146 pygame.init() 146 147 147 if w == 0 and h == 0:148 if (w == 0 and h == 0) or not fullscreen: 148 149 print("Not using fullscreen") 149 gameDisplay = pygame.display.set_mode((800, 600)) 150 [w, h] = [800, 600] 151 gameDisplay = pygame.display.set_mode((w, h), pygame.DOUBLEBUF|pygame.OPENGL) 150 152 else: 151 153 gameDisplay = pygame.display.set_mode((w, h), pygame.FULLSCREEN|pygame.DOUBLEBUF|pygame.OPENGL)
Note:
See TracChangeset
for help on using the changeset viewer.