Mercurial > touhou
diff pytouhou/ui/gamerunner.py @ 420:3a7b36324611
Replace Pyglet’s image loader with our SDL2_image-based one.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Tue, 16 Jul 2013 21:07:15 +0200 |
parents | 1c92721f8e49 |
children | b1248bab2d0f |
line wrap: on
line diff
--- a/pytouhou/ui/gamerunner.py +++ b/pytouhou/ui/gamerunner.py @@ -88,6 +88,7 @@ class GameRunner(GameRenderer): GameRenderer.__init__(self, resource_loader, game, background) sdl.init(sdl.INIT_VIDEO) + sdl.img_init(sdl.INIT_PNG) sdl.gl_set_attribute(sdl.GL_CONTEXT_MAJOR_VERSION, 2) sdl.gl_set_attribute(sdl.GL_CONTEXT_MINOR_VERSION, 1) sdl.gl_set_attribute(sdl.GL_DOUBLEBUFFER, int(double_buffer)) @@ -188,6 +189,7 @@ class GameRunner(GameRenderer): self.win.gl_delete_context() self.win.destroy_window() + sdl.img_quit() sdl.quit()