Commits

Paul Morelle committed 670a1d7

Propagate exceptions through init and Soya_SetVirtualVideoMode Cython functions

Comments (0)

Files changed (1)

 	if not root_widget is None:
 		root_widget.resize(0, 0, renderer.screen_width, renderer.screen_height)
 		
-cdef SDL_Surface* Soya_SetVirtualVideoMode(int width, int height, int bpp, unsigned int flags, int quiet=False):
+cdef SDL_Surface* Soya_SetVirtualVideoMode(int width, int height, int bpp, unsigned int flags, int quiet=False) except NULL:
 	cdef SDL_Surface *ret
 	cdef SDLSurface surface
 
 
 	return ret
 
-cdef void init_video(char* title, int width, int height, int fullscreen, int resizable, int quiet, int sdl_blit, int additional_flags, int virtual):
+cdef void init_video(char* title, int width, int height, int fullscreen, int resizable, int quiet, int sdl_blit, int additional_flags, int virtual) except *:
 	import sys
 	if sys.platform == "darwin":
 		if not quiet: