Browse Source

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

Ryan C. Gordon 11 months ago
parent
commit
3473cef7df
2 changed files with 3 additions and 7 deletions
  1. 0 6
      include/SDL3/SDL_surface.h
  2. 3 1
      src/video/SDL_blit.h

+ 0 - 6
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.

+ 3 - 1
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;