diff --git a/include/SDL3/SDL_surface.h b/include/SDL3/SDL_surface.h index 4505047afe..7d124a6a84 100644 --- a/include/SDL3/SDL_surface.h +++ b/include/SDL3/SDL_surface.h @@ -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. diff --git a/src/video/SDL_blit.h b/src/video/SDL_blit.h index 1ec1d61eae..235ca5422c 100644 --- a/src/video/SDL_blit.h +++ b/src/video/SDL_blit.h @@ -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;