diff options
author | Manuel QuiƱones <manuq@laptop.org> | 2013-09-30 18:33:36 (GMT) |
---|---|---|
committer | Manuel QuiƱones <manuq@laptop.org> | 2013-09-30 18:33:36 (GMT) |
commit | 3bcb85c352b6bf86dda46f2379bbd993d78832b6 (patch) | |
tree | 2199da59e91f36ca040e3e571aed8929df04ede8 /sugargame/event.py | |
parent | b091432a4cbbfbf8e899145ee9d3dbfe3fce91e1 (diff) |
Remove asserts and properly reinitialize PyGame display, if needed
The asserts where there to 1. avoid calling run_pygame more than once,
and 2. initialize PyGame display only after SDL_WINDOWID environment
variable was set.
This commit removes the asserts. 1. is solved using a _initialized
flag. And 2. is solved by checking if the display was set, and using
pygame.display.quit to uninitialize it.
Diffstat (limited to 'sugargame/event.py')
0 files changed, 0 insertions, 0 deletions