瀏覽代碼

Clarify what pitch means (thanks @zlago!)

Sam Lantinga 2 年之前
父節點
當前提交
37d066b99b
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      include/SDL3/SDL_surface.h

+ 1 - 1
include/SDL3/SDL_surface.h

@@ -171,7 +171,7 @@ extern DECLSPEC SDL_Surface *SDLCALL SDL_CreateSurface
  * \param pixels a pointer to existing pixel data
  * \param pixels a pointer to existing pixel data
  * \param width the width of the surface
  * \param width the width of the surface
  * \param height the height of the surface
  * \param height the height of the surface
- * \param pitch the pitch of the surface in bytes
+ * \param pitch the number of bytes between each row, including padding
  * \param format the SDL_PixelFormatEnum for the new surface's pixel format.
  * \param format the SDL_PixelFormatEnum for the new surface's pixel format.
  * \returns the new SDL_Surface structure that is created or NULL if it fails;
  * \returns the new SDL_Surface structure that is created or NULL if it fails;
  *          call SDL_GetError() for more information.
  *          call SDL_GetError() for more information.