Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667

main
Sylvain 2023-12-18 15:15:13 +01:00 committed by Sam Lantinga
parent 43309d38ed
commit a4496f7dcf
1 changed files with 6 additions and 2 deletions

View File

@ -862,8 +862,6 @@ extern DECLSPEC int SDLCALL SDL_BlitSurfaceUnchecked
* Perform a fast, low quality, stretch blit between two surfaces of the same * Perform a fast, low quality, stretch blit between two surfaces of the same
* format. * format.
* *
* **WARNING**: Please use SDL_BlitSurfaceScaled() instead.
*
* \param src the SDL_Surface structure to be copied from * \param src the SDL_Surface structure to be copied from
* \param srcrect the SDL_Rect structure representing the rectangle to be * \param srcrect the SDL_Rect structure representing the rectangle to be
* copied * copied
@ -874,6 +872,9 @@ extern DECLSPEC int SDLCALL SDL_BlitSurfaceUnchecked
* SDL_GetError() for more information. * SDL_GetError() for more information.
* *
* \since This function is available since SDL 3.0.0. * \since This function is available since SDL 3.0.0.
*
* \sa SDL_BlitSurfaceScaled
* \sa SDL_SetSurfaceScaleMode
*/ */
extern DECLSPEC int SDLCALL SDL_SoftStretch(SDL_Surface *src, extern DECLSPEC int SDLCALL SDL_SoftStretch(SDL_Surface *src,
const SDL_Rect *srcrect, const SDL_Rect *srcrect,
@ -893,6 +894,9 @@ extern DECLSPEC int SDLCALL SDL_SoftStretch(SDL_Surface *src,
* SDL_GetError() for more information. * SDL_GetError() for more information.
* *
* \since This function is available since SDL 3.0.0. * \since This function is available since SDL 3.0.0.
*
* \sa SDL_BlitSurfaceScaled
* \sa SDL_SetSurfaceScaleMode
*/ */
extern DECLSPEC int SDLCALL SDL_SoftStretchLinear(SDL_Surface *src, extern DECLSPEC int SDLCALL SDL_SoftStretchLinear(SDL_Surface *src,
const SDL_Rect *srcrect, const SDL_Rect *srcrect,