surface: SDL_blit is not used in the public API, remove it from headers.

This commit is contained in:
Ryan C. Gordon
2024-05-03 12:57:09 -04:00
parent 7559acaf75
commit 3473cef7df
2 changed files with 3 additions and 7 deletions

View File

@@ -135,12 +135,6 @@ typedef struct SDL_Surface
int refcount; /**< Read-mostly */
} SDL_Surface;
/**
* The type of function used for surface blitting functions.
*/
typedef int (SDLCALL *SDL_blit) (struct SDL_Surface *src, const SDL_Rect *srcrect,
struct SDL_Surface *dst, const SDL_Rect *dstrect);
/**
* Allocate a new RGB surface with a specific pixel format.

View File

@@ -86,13 +86,15 @@ typedef struct
SDL_BlitFunc func;
} SDL_BlitFuncEntry;
typedef int (SDLCALL *SDL_Blit) (struct SDL_Surface *src, const SDL_Rect *srcrect, struct SDL_Surface *dst, const SDL_Rect *dstrect);
/* Blit mapping definition */
/* typedef'ed in SDL_surface.h */
struct SDL_BlitMap
{
SDL_Surface *dst;
int identity;
SDL_blit blit;
SDL_Blit blit;
void *data;
SDL_BlitInfo info;