From 043c876a1582b096ee3e9e8517b214f77bbd4560 Mon Sep 17 00:00:00 2001
From: Petar Popovic <[EMAIL REDACTED]>
Date: Mon, 23 Sep 2024 13:19:47 +0200
Subject: [PATCH] Move default colorspace aliases into enum
---
include/SDL3/SDL_pixels.h | 11 +++--------
1 file changed, 3 insertions(+), 8 deletions(-)
diff --git a/include/SDL3/SDL_pixels.h b/include/SDL3/SDL_pixels.h
index 5034af65fa950..820e2995767fa 100644
--- a/include/SDL3/SDL_pixels.h
+++ b/include/SDL3/SDL_pixels.h
@@ -669,7 +669,7 @@ typedef enum SDL_Colorspace
SDL_MATRIX_COEFFICIENTS_BT2020_NCL,
SDL_CHROMA_LOCATION_LEFT), */
- SDL_COLORSPACE_BT2020_FULL = 0x22102609u /**< Equivalent to DXGI_COLOR_SPACE_YCBCR_FULL_G22_LEFT_P2020 */
+ SDL_COLORSPACE_BT2020_FULL = 0x22102609u, /**< Equivalent to DXGI_COLOR_SPACE_YCBCR_FULL_G22_LEFT_P2020 */
/* SDL_DEFINE_COLORSPACE(SDL_COLOR_TYPE_YCBCR,
SDL_COLOR_RANGE_FULL,
SDL_COLOR_PRIMARIES_BT2020,
@@ -677,15 +677,10 @@ typedef enum SDL_Colorspace
SDL_MATRIX_COEFFICIENTS_BT2020_NCL,
SDL_CHROMA_LOCATION_LEFT), */
+ SDL_COLORSPACE_RGB_DEFAULT = SDL_COLORSPACE_SRGB, /**< The default colorspace for RGB surfaces if no colorspace is specified */
+ SDL_COLORSPACE_YUV_DEFAULT = SDL_COLORSPACE_JPEG /**< The default colorspace for YUV surfaces if no colorspace is specified */
} SDL_Colorspace;
-
-/* The default colorspace for RGB surfaces if no colorspace is specified */
-#define SDL_COLORSPACE_RGB_DEFAULT SDL_COLORSPACE_SRGB
-
-/* The default colorspace for YUV surfaces if no colorspace is specified */
-#define SDL_COLORSPACE_YUV_DEFAULT SDL_COLORSPACE_JPEG
-
/**
* A structure that represents a color as RGBA components.
*