diff pytouhou/lib/sdl.pyx @ 422:52829ebe2561

Refactor window management in its own class.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Tue, 16 Jul 2013 21:07:15 +0200
parents b1248bab2d0f
children 2a352118c55a
line wrap: on
line diff
--- a/pytouhou/lib/sdl.pyx
+++ b/pytouhou/lib/sdl.pyx
@@ -65,6 +65,9 @@ cdef class Window:
     def gl_delete_context(self):
         SDL_GL_DeleteContext(self.context)
 
+    def set_window_size(self, width, height):
+        SDL_SetWindowSize(self.window, width, height)
+
 
 cdef class Surface:
     cdef SDL_Surface *surface