Skip to content

Commit

Permalink
Fixed some indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
intjelic committed Sep 4, 2013
1 parent cc86a54 commit e49f7a0
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions src/sfml/graphics.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ cdef api object wrap_color(sf.Color *p):

cdef class Transform:
cdef sf.Transform *p_this
cdef bint delete_this
cdef bint delete_this

IDENTITY = wrap_transform(<sf.Transform*>&sf.transform.Identity)

Expand Down Expand Up @@ -804,17 +804,15 @@ cdef class Glyph:
def __set__(self, texture_rectangle):
self.p_this.textureRect = to_intrect(texture_rectangle)


cdef Glyph wrap_glyph(sf.Glyph *p):
cdef Glyph r = Glyph.__new__(Glyph)
r.p_this = p
return r


cdef class Font:
cdef sf.Font *p_this
cdef bint delete_this
cdef Texture m_texture
cdef bint delete_this
cdef Texture m_texture

def __init__(self):
raise UserWarning("Use a specific constructor")
Expand Down Expand Up @@ -871,7 +869,6 @@ cdef Font wrap_font(sf.Font *p, bint d=True):
r.delete_this = d
return r


cdef class Shader:
cdef sf.Shader *p_this
cdef bint delete_this
Expand Down Expand Up @@ -1692,9 +1689,9 @@ cdef class VertexArray(Drawable):


cdef class View:
cdef sf.View *p_this
cdef RenderWindow m_renderwindow
cdef RenderTarget m_rendertarget
cdef sf.View *p_this
cdef RenderWindow m_renderwindow
cdef RenderTarget m_rendertarget

def __init__(self, rectangle=None):
if not rectangle: self.p_this = new sf.View()
Expand Down Expand Up @@ -1961,7 +1958,7 @@ cdef class RenderWindow(Window):

cdef class RenderTexture(RenderTarget):
cdef sf.RenderTexture *p_this
cdef Texture m_texture
cdef Texture m_texture

def __init__(self, unsigned int width, unsigned int height, bint depthBuffer=False):
self.p_this = new sf.RenderTexture()
Expand Down

0 comments on commit e49f7a0

Please sign in to comment.