# SDL: SDL\_GetPixelFormatName() returns a string

**URL:** <https://discourse.libsdl.org/t/sdl-sdl-getpixelformatname-returns-a-string/52662>\
**Category:** SDL Commits\
**Created:** [July 12, 2024, 1:00pm UTC](https://discourse.libsdl.org/t/sdl-sdl-getpixelformatname-returns-a-string/52662 "2024-07-12T13:00:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![SDLPushPostBot](https://discourse.libsdl.org/user_avatar/discourse.libsdl.org/sdlpushpostbot/32/4370_2.png) [@SDLPushPostBot](https://discourse.libsdl.org/u/SDLPushPostBot)\
**Post date:** [July 12, 2024, 1:00pm UTC](https://discourse.libsdl.org/t/sdl-sdl-getpixelformatname-returns-a-string/52662/1 "2024-07-12T13:00:02Z")

</div>

> <https://github.com/libsdl-org/SDL/commit/282cf286fc9e5592b589a436aeb2c61f794a6b5e>

```diff
From 282cf286fc9e5592b589a436aeb2c61f794a6b5e Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Fri, 12 Jul 2024 05:59:12 -0700
Subject: [PATCH] SDL_GetPixelFormatName() returns a string

---
 include/SDL3/SDL_pixels.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/SDL3/SDL_pixels.h b/include/SDL3/SDL_pixels.h
index 360ee955133eb..4213cd4c83431 100644
--- a/include/SDL3/SDL_pixels.h
+++ b/include/SDL3/SDL_pixels.h
@@ -764,7 +764,7 @@ typedef struct SDL_PixelFormatDetails
  *
  * \param format the pixel format to query.
  * \returns the human readable name of the specified pixel format or
- * `SDL_PIXELFORMAT_UNKNOWN` if the format isn't recognized.
+ * "SDL_PIXELFORMAT_UNKNOWN" if the format isn't recognized.
  *
  * \threadsafety It is safe to call this function from any thread.
  *

```
