mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-27 16:28:40 +00:00
SDL_Surface refcount: destination surface keep track of surfaces
that are mapped to it and automatically invalidate them when it is freed - refcount is kept so that an external application can still create a reference to SDL_Surface. - lock_data was un-used and is now renamed and used as a list keep track of the blitmap
This commit is contained in:
parent
cce6c60518
commit
ebc12a2fd2
4 changed files with 67 additions and 13 deletions
|
|
@ -80,7 +80,9 @@ typedef struct SDL_Surface
|
|||
|
||||
/** information needed for surfaces requiring locks */
|
||||
int locked; /**< Read-only */
|
||||
void *lock_data; /**< Read-only */
|
||||
|
||||
/** list of BlitMap that hold a reference to this surface */
|
||||
void *list_blitmap; /**< Private */
|
||||
|
||||
/** clipping information */
|
||||
SDL_Rect clip_rect; /**< Read-only */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue