mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-05 22:30:29 +00:00
Update src/video/SDL_surface.c
Co-authored-by: Sam Lantinga <slouken@libsdl.org>
This commit is contained in:
parent
1402e20f15
commit
2f6c37ce13
1 changed files with 5 additions and 5 deletions
|
|
@ -45,16 +45,16 @@ static char SDL_surface_magic;
|
|||
|
||||
// Some hint callbacks.
|
||||
|
||||
static SDL_InitState create_surface_hints_init;
|
||||
static bool create_surface_zeroed_hint = true; // tracks SDL_HINT_CREATE_SURFACE_ZEROED state.
|
||||
static bool create_surface_malloc_hint = false; // tracks "SDL_SURFACE_MALLOC" state.
|
||||
static SDL_InitState SDL_create_surface_hints_init;
|
||||
static bool SDL_create_surface_zeroed_hint = true; // tracks SDL_HINT_CREATE_SURFACE_ZEROED state.
|
||||
static bool SDL_create_surface_malloc_hint = false; // tracks "SDL_SURFACE_MALLOC" state.
|
||||
|
||||
static void SDLCALL SDL_SurfaceClearHintWatcher(void *userdata, const char *name, const char *oldValue, const char *newValue)
|
||||
static void SDLCALL SDL_CreateSurfaceZeroedChanged(void *userdata, const char *name, const char *oldValue, const char *newValue)
|
||||
{
|
||||
create_surface_zeroed_hint = SDL_GetStringBoolean(newValue, true);
|
||||
}
|
||||
|
||||
static void SDLCALL SDL_SurfaceMallocHintWatcher(void *userdata, const char *name, const char *oldValue, const char *newValue)
|
||||
static void SDLCALL SDL_SurfaceMallocChanged(void *userdata, const char *name, const char *oldValue, const char *newValue)
|
||||
{
|
||||
create_surface_malloc_hint = SDL_GetStringBoolean(newValue, false);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue