From 2f6c37ce133a674b750f48054ca06f5f9301814f Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Fri, 5 Jun 2026 00:24:18 -0400 Subject: [PATCH] Update src/video/SDL_surface.c Co-authored-by: Sam Lantinga --- src/video/SDL_surface.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/video/SDL_surface.c b/src/video/SDL_surface.c index 47df7b1b2a..6953447bad 100644 --- a/src/video/SDL_surface.c +++ b/src/video/SDL_surface.c @@ -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); }