瀏覽代碼

Fix minor typos in headers.

Frank Praznik 2 月之前
父節點
當前提交
d028d8bc3b
共有 4 個文件被更改,包括 4 次插入4 次删除
  1. 1 1
      include/SDL3/SDL_keycode.h
  2. 1 1
      include/SDL3/SDL_mouse.h
  3. 1 1
      include/SDL3/SDL_surface.h
  4. 1 1
      include/SDL3/SDL_video.h

+ 1 - 1
include/SDL3/SDL_keycode.h

@@ -48,7 +48,7 @@
  * by default to SDLK_0...SDLK_9 on AZERTY layouts.
  *
  * Keys with the `SDLK_EXTENDED_MASK` bit set do not map to a scancode or
- * unicode code point.
+ * Unicode code point.
  *
  * Many common keycodes are listed below, but this list is not exhaustive.
  *

+ 1 - 1
include/SDL3/SDL_mouse.h

@@ -731,7 +731,7 @@ extern SDL_DECLSPEC SDL_Cursor * SDLCALL SDL_GetCursor(void);
  * You do not have to call SDL_DestroyCursor() on the return value, but it is
  * safe to do so.
  *
- * \returns the default cursor on success or NULL on failuree; call
+ * \returns the default cursor on success or NULL on failure; call
  *          SDL_GetError() for more information.
  *
  * \threadsafety This function should only be called on the main thread.

+ 1 - 1
include/SDL3/SDL_surface.h

@@ -1255,7 +1255,7 @@ extern SDL_DECLSPEC bool SDLCALL SDL_PremultiplySurfaceAlpha(SDL_Surface *surfac
  * This function handles all surface formats, and ignores any clip rectangle.
  *
  * If the surface is YUV, the color is assumed to be in the sRGB colorspace,
- * otherwise the color is assumed to be in the colorspace of the suface.
+ * otherwise the color is assumed to be in the colorspace of the surface.
  *
  * \param surface the SDL_Surface to clear.
  * \param r the red component of the pixel, normally in the range 0-1.

+ 1 - 1
include/SDL3/SDL_video.h

@@ -1881,7 +1881,7 @@ extern SDL_DECLSPEC bool SDLCALL SDL_GetWindowSize(SDL_Window *window, int *w, i
  * notches, TV overscan, etc. This function provides the area of the window
  * which is safe to have interactable content. You should continue rendering
  * into the rest of the window, but it should not contain visually important
- * or interactible content.
+ * or interactable content.
  *
  * \param window the window to query.
  * \param rect a pointer filled in with the client area that is safe for