Browse Source

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

Sylvain 1 year ago
parent
commit
a4496f7dcf
1 changed files with 6 additions and 2 deletions
  1. 6 2
      include/SDL3/SDL_surface.h

+ 6 - 2
include/SDL3/SDL_surface.h

@@ -862,8 +862,6 @@ extern DECLSPEC int SDLCALL SDL_BlitSurfaceUnchecked
  * Perform a fast, low quality, stretch blit between two surfaces of the same
  * format.
  *
- * **WARNING**: Please use SDL_BlitSurfaceScaled() instead.
- *
  * \param src the SDL_Surface structure to be copied from
  * \param srcrect the SDL_Rect structure representing the rectangle to be
  *                copied
@@ -874,6 +872,9 @@ extern DECLSPEC int SDLCALL SDL_BlitSurfaceUnchecked
  *          SDL_GetError() for more information.
  *
  * \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,
                                             const SDL_Rect *srcrect,
@@ -893,6 +894,9 @@ extern DECLSPEC int SDLCALL SDL_SoftStretch(SDL_Surface *src,
  *          SDL_GetError() for more information.
  *
  * \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,
                                             const SDL_Rect *srcrect,