mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-05-31 14:29:14 +08:00
SDL_properties.c: mark CleanupFreeableProperty and CleanupSurface as SDLCALL
This commit is contained in:
@@ -375,7 +375,7 @@ int SDL_SetProperty(SDL_PropertiesID props, const char *name, void *value)
|
|||||||
return SDL_PrivateSetProperty(props, name, property);
|
return SDL_PrivateSetProperty(props, name, property);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void CleanupFreeableProperty(void *userdata, void *value)
|
static void SDLCALL CleanupFreeableProperty(void *userdata, void *value)
|
||||||
{
|
{
|
||||||
SDL_free(value);
|
SDL_free(value);
|
||||||
}
|
}
|
||||||
@@ -385,7 +385,7 @@ int SDL_SetFreeableProperty(SDL_PropertiesID props, const char *name, void *valu
|
|||||||
return SDL_SetPropertyWithCleanup(props, name, value, CleanupFreeableProperty, NULL);
|
return SDL_SetPropertyWithCleanup(props, name, value, CleanupFreeableProperty, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void CleanupSurface(void *userdata, void *value)
|
static void SDLCALL CleanupSurface(void *userdata, void *value)
|
||||||
{
|
{
|
||||||
SDL_Surface *surface = (SDL_Surface *)value;
|
SDL_Surface *surface = (SDL_Surface *)value;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user