From d03f3e11f6ad2d587926fda86fd0d58643244d42 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Sat, 6 Sep 2025 10:40:41 -0700 Subject: [PATCH] Change the default YUV colorspace to SDL_COLORSPACE_BT601_LIMITED This was the default for SDL2 and what people expect, migrating code. Fixes https://github.com/libsdl-org/SDL/issues/13796 --- 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 f9d6e9e308..6ef9854d39 100644 --- a/include/SDL3/SDL_pixels.h +++ b/include/SDL3/SDL_pixels.h @@ -1096,7 +1096,7 @@ typedef enum SDL_Colorspace 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_YUV_DEFAULT = SDL_COLORSPACE_BT601_LIMITED /**< The default colorspace for YUV surfaces if no colorspace is specified */ } SDL_Colorspace; /**