소스 검색

Document that new surfaces are initialized to zero.

Fixes https://github.com/libsdl-org/SDL/issues/10577
Sam Lantinga 1 년 전
부모
커밋
03ace96e5b
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      include/SDL3/SDL_surface.h

+ 2 - 0
include/SDL3/SDL_surface.h

@@ -125,6 +125,8 @@ typedef struct SDL_Surface
 /**
  * Allocate a new surface with a specific pixel format.
  *
+ * The pixels of the new surface are initialized to zero.
+ *
  * \param width the width of the surface.
  * \param height the height of the surface.
  * \param format the SDL_PixelFormat for the new surface's pixel format.