{
SDL_Surface *surface = get_surface_address (surface_smob);
- return scm_from_int (surface->pixels);
+ return scm_from_int ((int)surface->pixels);
}
SCM
SDL_Surface *new = SDL_DisplayFormat (get_surface_address (surface));
if (new) {
- return make_surface (scm_from_locale_string (get_surface_filename (surface)), new);
+ return make_surface (get_surface_filename (surface), new);
}
else {
return SCM_BOOL_F;
SDL_Surface *new = SDL_DisplayFormatAlpha (get_surface_address (surface));
if (new) {
- return make_surface (scm_from_locale_string (get_surface_filename (surface)), new);
+ return make_surface (get_surface_filename (surface), new);
}
else {
return SCM_BOOL_F;
}
-void*
-SDL_register_functions (void* data)
+void
+init_guile_SDL ()
{
surface_tag = scm_make_smob_type ("surface", sizeof (struct surface));
scm_set_smob_mark (surface_tag, mark_surface);
scm_c_define_gsubr ("Mix_FreeMusic", 1, 0, 0, gacela_Mix_FreeMusic);
scm_c_define_gsubr ("Mix_FreeChunk", 1, 0, 0, gacela_Mix_FreeChunk);
scm_c_define_gsubr ("Mix_CloseAudio", 0, 0, 0, gacela_Mix_CloseAudio);
-
- return NULL;
}