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

Signed-off-by: Simon McVittie <smcv@collabora.com>
main
Simon McVittie 2022-05-10 10:35:06 +01:00 committed by Sam Lantinga
parent 535fdc3adc
commit 507ce36d80
1 changed files with 3 additions and 0 deletions

View File

@ -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