Bläddra i källkod

Sync SDL3 wiki -> header

SDL Wiki Bot 8 månader sedan
förälder
incheckning
2e058ba7a4
2 ändrade filer med 9 tillägg och 7 borttagningar
  1. 2 1
      include/SDL3/SDL_render.h
  2. 7 6
      include/SDL3/SDL_surface.h

+ 2 - 1
include/SDL3/SDL_render.h

@@ -1932,7 +1932,8 @@ extern SDL_DECLSPEC int SDLCALL SDL_RenderTextureTiled(SDL_Renderer *renderer, S
  * \param left_width the width, in pixels, of the left corners in `srcrect`.
  * \param right_width the width, in pixels, of the right corners in `srcrect`.
  * \param top_height the height, in pixels, of the top corners in `srcrect`.
- * \param bottom_height the height, in pixels, of the bottom corners in `srcrect`.
+ * \param bottom_height the height, in pixels, of the bottom corners in
+ *                      `srcrect`.
  * \param scale the scale used to transform the corner of `srcrect` into the
  *              corner of `dstrect`, or 0.0f for an unscaled copy.
  * \param dstrect a pointer to the destination rectangle, or NULL for the

+ 7 - 6
include/SDL3/SDL_surface.h

@@ -1105,11 +1105,11 @@ extern SDL_DECLSPEC int SDLCALL SDL_BlitSurfaceTiledWithScale(SDL_Surface *src,
  * Perform a scaled blit using the 9-grid algorithm to a destination surface,
  * which may be of a different format.
  *
- * The pixels in the source surface are split into a 3x3 grid, using the different
- * corner sizes for each corner, and the sides and center making up the
- * remaining pixels. The corners are then scaled using `scale` and fit into
- * the corners of the destination rectangle. The sides and center are then
- * stretched into place to cover the remaining destination rectangle.
+ * The pixels in the source surface are split into a 3x3 grid, using the
+ * different corner sizes for each corner, and the sides and center making up
+ * the remaining pixels. The corners are then scaled using `scale` and fit
+ * into the corners of the destination rectangle. The sides and center are
+ * then stretched into place to cover the remaining destination rectangle.
  *
  * \param src the SDL_Surface structure to be copied from.
  * \param srcrect the SDL_Rect structure representing the rectangle to be used
@@ -1117,7 +1117,8 @@ extern SDL_DECLSPEC int SDLCALL SDL_BlitSurfaceTiledWithScale(SDL_Surface *src,
  * \param left_width the width, in pixels, of the left corners in `srcrect`.
  * \param right_width the width, in pixels, of the right corners in `srcrect`.
  * \param top_height the height, in pixels, of the top corners in `srcrect`.
- * \param bottom_height the height, in pixels, of the bottom corners in `srcrect`.
+ * \param bottom_height the height, in pixels, of the bottom corners in
+ *                      `srcrect`.
  * \param scale the scale used to transform the corner of `srcrect` into the
  *              corner of `dstrect`, or 0.0f for an unscaled blit.
  * \param scaleMode scale algorithm to be used.