|
@@ -958,9 +958,7 @@ extern SDL_DECLSPEC int SDLCALL SDL_FillSurfaceRects(SDL_Surface *dst, const SDL
|
|
|
* copied, or NULL to copy the entire surface.
|
|
|
* \param dst the SDL_Surface structure that is the blit target.
|
|
|
* \param dstrect the SDL_Rect structure representing the x and y position in
|
|
|
- * the destination surface. On input the width and height are
|
|
|
- * ignored (taken from srcrect), and on output this is filled
|
|
|
- * in with the actual rectangle used after clipping.
|
|
|
+ * the destination surface, or NULL for (0,0). The width and height are ignored, and are copied from `srcrect`. If you want a specific width and height, you should use SDL_BlitSurfaceScaled().
|
|
|
* \returns 0 on success or a negative error code on failure; call
|
|
|
* SDL_GetError() for more information.
|
|
|
*
|
|
@@ -972,7 +970,7 @@ extern SDL_DECLSPEC int SDLCALL SDL_FillSurfaceRects(SDL_Surface *dst, const SDL
|
|
|
*
|
|
|
* \sa SDL_BlitSurfaceScaled
|
|
|
*/
|
|
|
-extern SDL_DECLSPEC int SDLCALL SDL_BlitSurface(SDL_Surface *src, const SDL_Rect *srcrect, SDL_Surface *dst, SDL_Rect *dstrect);
|
|
|
+extern SDL_DECLSPEC int SDLCALL SDL_BlitSurface(SDL_Surface *src, const SDL_Rect *srcrect, SDL_Surface *dst, const SDL_Rect *dstrect);
|
|
|
|
|
|
/**
|
|
|
* Perform low-level surface blitting only.
|
|
@@ -985,7 +983,7 @@ extern SDL_DECLSPEC int SDLCALL SDL_BlitSurface(SDL_Surface *src, const SDL_Rect
|
|
|
* copied, may not be NULL.
|
|
|
* \param dst the SDL_Surface structure that is the blit target.
|
|
|
* \param dstrect the SDL_Rect structure representing the target rectangle in
|
|
|
- * the destination surface.
|
|
|
+ * the destination surface, may not be NULL.
|
|
|
* \returns 0 on success or a negative error code on failure; call
|
|
|
* SDL_GetError() for more information.
|
|
|
*
|
|
@@ -1030,8 +1028,7 @@ extern SDL_DECLSPEC int SDLCALL SDL_SoftStretch(SDL_Surface *src, const SDL_Rect
|
|
|
* copied, or NULL to copy the entire surface.
|
|
|
* \param dst the SDL_Surface structure that is the blit target.
|
|
|
* \param dstrect the SDL_Rect structure representing the target rectangle in
|
|
|
- * the destination surface, filled with the actual rectangle
|
|
|
- * used after clipping.
|
|
|
+ * the destination surface, or NULL to fill the entire destination surface.
|
|
|
* \param scaleMode the SDL_ScaleMode to be used.
|
|
|
* \returns 0 on success or a negative error code on failure; call
|
|
|
* SDL_GetError() for more information.
|
|
@@ -1044,7 +1041,7 @@ extern SDL_DECLSPEC int SDLCALL SDL_SoftStretch(SDL_Surface *src, const SDL_Rect
|
|
|
*
|
|
|
* \sa SDL_BlitSurface
|
|
|
*/
|
|
|
-extern SDL_DECLSPEC int SDLCALL SDL_BlitSurfaceScaled(SDL_Surface *src, const SDL_Rect *srcrect, SDL_Surface *dst, SDL_Rect *dstrect, SDL_ScaleMode scaleMode);
|
|
|
+extern SDL_DECLSPEC int SDLCALL SDL_BlitSurfaceScaled(SDL_Surface *src, const SDL_Rect *srcrect, SDL_Surface *dst, const SDL_Rect *dstrect, SDL_ScaleMode scaleMode);
|
|
|
|
|
|
/**
|
|
|
* Perform low-level surface scaled blitting only.
|