# HG changeset patch # User Emmanuel Gil Peyrot # Date 1401211533 -7200 # Node ID aad758aef26d11bc26363f9f9a757a8ca01c28f2 # Parent 0d7a16e0f834437d39c514de66df6bc9cdf9a746 Don’t store framerate limit in the Window while it already is in the Clock. diff --git a/pytouhou/ui/window.pxd b/pytouhou/ui/window.pxd --- 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 diff --git a/pytouhou/ui/window.pyx b/pytouhou/ui/window.pyx --- 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: