]> git.jsancho.org Git - gacela.git/commitdiff
SDL_SetVideoMode funcionando
authorjsancho <devnull@localhost>
Thu, 5 May 2011 06:16:59 +0000 (06:16 +0000)
committerjsancho <devnull@localhost>
Thu, 5 May 2011 06:16:59 +0000 (06:16 +0000)
src/gacela_SDL.c

index d75af2c1c94301e3631cb64218b3a5c98ccbdbed..98b4a5ccf2107ea90d241ca7f030d2775a61c92a 100644 (file)
@@ -18,6 +18,10 @@ gacela_SDL_Quit ()
 SCM
 gacela_SDL_SetVideoMode (SCM width, SCM height, SCM bpp, SCM flags)
 {
+  return scm_int2num (SDL_SetVideoMode (scm_num2int (width, 0, "SDL_SetVideoMode"), \
+                                       scm_num2int (height, 0, "SDL_SetVideoMde"), \
+                                       scm_num2int (bpp, 0, "SDL_SetVideoMde"), \
+                                       scm_num2int (flags, 0, "SDL_SetVideoMde")));
 }
 
 void*
@@ -46,5 +50,6 @@ SDL_register_functions (void* data)
 
   scm_c_define_gsubr ("SDL_Init", 1, 0, 0, gacela_SDL_Init);
   scm_c_define_gsubr ("SDL_Quit", 0, 0, 0, gacela_SDL_Quit);
+  scm_c_define_gsubr ("SDL_SetVideoMode", 4, 0, 0, gacela_SDL_SetVideoMode);
   return NULL;
 }