Browse Source

video: Note unused SDL_surface creation parameters for removal in SDL 3

Signed-off-by: Simon McVittie <[email protected]>
Simon McVittie 3 years ago
parent
commit
507ce36d80
1 changed files with 3 additions and 0 deletions
  1. 3 0
      src/video/SDL_surface.c

+ 3 - 0
src/video/SDL_surface.c

@@ -69,6 +69,7 @@ SDL_CalculatePitch(Uint32 format, size_t width, SDL_bool minimal)
     return pitch;
 }
 
+/* TODO: In SDL 3, drop the unused flags and depth parameters */
 /*
  * Create an empty RGB surface of the appropriate depth using the given
  * enum SDL_PIXELFORMAT_* format
@@ -176,6 +177,7 @@ SDL_CreateRGBSurfaceWithFormat(Uint32 flags, int width, int height, int depth,
     return surface;
 }
 
+/* TODO: In SDL 3, drop the unused flags parameter */
 /*
  * Create an empty RGB surface of the appropriate depth
  */
@@ -245,6 +247,7 @@ SDL_CreateRGBSurfaceFrom(void *pixels,
     return surface;
 }
 
+/* TODO: In SDL 3, drop the unused depth parameter */
 /*
  * Create an RGB surface from an existing memory buffer using the given given
  * enum SDL_PIXELFORMAT_* format