mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-12-24 15:18:53 +00:00
Store the surface properties in the reserved pointer of a surface
This prevents us from exposing the properties publicly and allows us to repurpose the pointer later if necessary. Fixes https://github.com/libsdl-org/SDL/issues/8758
This commit is contained in:
@@ -104,11 +104,7 @@ typedef struct SDL_Surface
|
||||
int pitch; /**< Read-only */
|
||||
void *pixels; /**< Read-write */
|
||||
|
||||
/** Application data associated with the surface */
|
||||
union {
|
||||
void *reserved; /**< For ABI compatibility only, do not use */
|
||||
SDL_PropertiesID props; /**< Read-only */
|
||||
};
|
||||
void *reserved; /**< Private */
|
||||
|
||||
/** information needed for surfaces requiring locks */
|
||||
int locked; /**< Read-only */
|
||||
|
||||
Reference in New Issue
Block a user