Mercurial > touhou
diff pytouhou/lib/sdl.pyx @ 491:2276229282fd
Fix gcc’s warnings with -Wall -Wextra.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Fri, 04 Oct 2013 14:32:28 +0200 |
parents | 36bc577b2392 |
children | 4778c482f24a |
line wrap: on
line diff
--- a/pytouhou/lib/sdl.pyx +++ b/pytouhou/lib/sdl.pyx @@ -167,7 +167,7 @@ cdef void init(Uint32 flags) except *: raise SDLError(SDL_GetError()) -cdef void img_init(Uint32 flags) except *: +cdef void img_init(int flags) except *: if IMG_Init(flags) != flags: raise SDLError(SDL_GetError()) @@ -182,22 +182,6 @@ cdef void ttf_init() except *: raise SDLError(SDL_GetError()) -cdef void quit() nogil: - SDL_Quit() - - -cdef void img_quit() nogil: - IMG_Quit() - - -cdef void mix_quit() nogil: - Mix_Quit() - - -cdef void ttf_quit() nogil: - TTF_Quit() - - cdef void gl_set_attribute(SDL_GLattr attr, int value) except *: if SDL_GL_SetAttribute(attr, value) < 0: raise SDLError(SDL_GetError())