From 37d066b99b586f880ad04523ac89d837fc494ce1 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Sat, 9 Mar 2024 08:32:25 -0800 Subject: [PATCH] Clarify what pitch means (thanks @zlago!) --- include/SDL3/SDL_surface.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/SDL3/SDL_surface.h b/include/SDL3/SDL_surface.h index 3a4ece8dbe..d42604fad6 100644 --- a/include/SDL3/SDL_surface.h +++ b/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 width the width 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. * \returns the new SDL_Surface structure that is created or NULL if it fails; * call SDL_GetError() for more information.