changeset 552:aad758aef26d

Don’t store framerate limit in the Window while it already is in the Clock.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Tue, 27 May 2014 19:25:33 +0200
parents 0d7a16e0f834
children 8f51e34d911c
files pytouhou/ui/window.pxd pytouhou/ui/window.pyx
diffstat 2 files changed, 1 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/pytouhou/ui/window.pxd
+++ b/pytouhou/ui/window.pxd
@@ -20,7 +20,6 @@ cdef class Runner:
 
 cdef class Window:
     cdef sdl.Window win
-    cdef long fps_limit
     cdef public bint use_fixed_pipeline
     cdef Runner runner
     cdef Clock clock
--- a/pytouhou/ui/window.pyx
+++ b/pytouhou/ui/window.pyx
@@ -88,7 +88,6 @@ cdef class Runner:
 cdef class Window:
     def __init__(self, bint double_buffer=True, long fps_limit=-1,
                  bint fixed_pipeline=False, bint sound=True, bint opengl=True):
-        self.fps_limit = fps_limit
         self.use_fixed_pipeline = fixed_pipeline
         self.runner = None
 
@@ -130,7 +129,7 @@ cdef class Window:
         else:
             self.win.create_renderer(0)
 
-        self.clock = Clock(self.fps_limit)
+        self.clock = Clock(fps_limit)
 
 
     cdef void set_size(self, int width, int height) nogil: