X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=src%2Fgacela_SDL.c;h=79774444e00acb4caef88de9e842d4057e036b16;hb=afd5b9c3d8e3e5ce81893771c7cac53f6469aa07;hp=ba473284216251687cc4fabe6db5feba70a51e18;hpb=141a622804c650ab7e2b61ecc3af87c4be6495c5;p=gacela.git diff --git a/src/gacela_SDL.c b/src/gacela_SDL.c index ba47328..7977444 100644 --- a/src/gacela_SDL.c +++ b/src/gacela_SDL.c @@ -164,6 +164,12 @@ gacela_SDL_SetVideoMode (SCM width, SCM height, SCM bpp, SCM flags) } } +SCM +gacela_SDL_FreeSurface (SCM surface) +{ + return scm_from_int (free_surface (surface)); +} + SCM gacela_SDL_WM_SetCaption (SCM title, SCM icon) { @@ -465,6 +471,7 @@ 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); + scm_c_define_gsubr ("SDL_FreeSurface", 1, 0, 0, gacela_SDL_FreeSurface); scm_c_define_gsubr ("SDL_WM_SetCaption", 2, 0, 0, gacela_SDL_WM_SetCaption); scm_c_define_gsubr ("SDL_Flip", 1, 0, 0, gacela_SDL_Flip); scm_c_define_gsubr ("SDL_Delay", 1, 0, 0, gacela_SDL_Delay);