surface: Renamed hint to SDL_HINT_CREATE_SURFACE_ZEROED.

This commit is contained in:
Ryan C. Gordon 2026-06-04 22:46:46 -04:00
parent 2ac6dc9ce4
commit c20b3ba2c9
No known key found for this signature in database
GPG key ID: FA148B892AB48044
2 changed files with 8 additions and 8 deletions

View file

@ -703,10 +703,10 @@ extern "C" {
#define SDL_HINT_CPU_FEATURE_MASK "SDL_CPU_FEATURE_MASK"
/**
* A variable that decides whether SDL_CreateSurface() clears pixels.
* A variable that decides whether SDL_CreateSurface() zeroes pixels.
*
* By default, SDL_CreateSurface() will clear the newly-created surface by
* setting all bytes of its `pixels` buffer to zero; for many formats this
* setting all bytes in its `pixels` buffer to zero; for many formats this
* clears the surface black, as a reasonable default.
*
* However, clearing the surface is wasted effort if the app plans to
@ -723,7 +723,7 @@ extern "C" {
*
* \since This hint is available since SDL 3.6.0.
*/
#define SDL_HINT_CREATE_SURFACE_CLEAR "SDL_CREATE_SURFACE_CLEAR"
#define SDL_HINT_CREATE_SURFACE_ZEROED "SDL_CREATE_SURFACE_ZEROED"
/**
* A variable controlling whether DirectInput should be used for controllers.