From 413ac5084dbb1d64af8c5b7217f6d1f34e347ef3 Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Thu, 23 Jul 2026 10:40:20 -0700
Subject: [PATCH] testcolorspace: show the blend color when it's incorrect
Also added an additional PQ blend color case
---
test/testcolorspace.c | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/test/testcolorspace.c b/test/testcolorspace.c
index 7f02263725ab6..ef4b5e2af0513 100644
--- a/test/testcolorspace.c
+++ b/test/testcolorspace.c
@@ -454,10 +454,11 @@ static void RenderBlendDrawing(void)
(cr.r == 191 && cr.g == 162 && cr.b == 82)) {
DrawText(x, y, "Correct blend color, blending in sRGB space");
} else if ((cr.r == 214 && cr.g == 156 && cr.b == 113) ||
- (cr.r == 215 && cr.g == 155 && cr.b == 113)) {
+ (cr.r == 215 && cr.g == 155 && cr.b == 113) ||
+ (cr.r == 215 && cr.g == 154 && cr.b == 112)) {
DrawText(x, y, "Correct blend color, blending in PQ space");
} else {
- DrawText(x, y, "Incorrect blend color, unknown reason");
+ DrawText(x, y, "Incorrect blend color (%d,%d,%d), unknown reason", cr.r, cr.g, cr.b);
}
y += TEXT_LINE_ADVANCE;
}
@@ -516,10 +517,11 @@ static void RenderBlendTexture(void)
(cr.r == 191 && cr.g == 162 && cr.b == 82)) {
DrawText(x, y, "Correct blend color, blending in sRGB space");
} else if ((cr.r == 214 && cr.g == 156 && cr.b == 113) ||
- (cr.r == 215 && cr.g == 155 && cr.b == 113)) {
+ (cr.r == 215 && cr.g == 155 && cr.b == 113) ||
+ (cr.r == 215 && cr.g == 154 && cr.b == 112)) {
DrawText(x, y, "Correct blend color, blending in PQ space");
} else {
- DrawText(x, y, "Incorrect blend color, unknown reason");
+ DrawText(x, y, "Incorrect blend color (%d,%d,%d), unknown reason", cr.r, cr.g, cr.b);
}
y += TEXT_LINE_ADVANCE;