From dfcc95e8aaab4a72fe9e43c6f00260f5a58a4a0a Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Wed, 29 Jan 2025 10:50:17 -0800
Subject: [PATCH] We always want color when available for the text engines
---
src/SDL_ttf.c | 10 ++--------
1 file changed, 2 insertions(+), 8 deletions(-)
diff --git a/src/SDL_ttf.c b/src/SDL_ttf.c
index 1f7b5b2f..1d2635af 100644
--- a/src/SDL_ttf.c
+++ b/src/SDL_ttf.c
@@ -3111,14 +3111,8 @@ SDL_Surface *TTF_GetGlyphImageForIndex(TTF_Font *font, Uint32 glyph_index)
TTF_CHECK_FONT(font, NULL);
- if (font->render_sdf) {
- if (!Find_GlyphByIndex(font, glyph_index, COLOR, 0, 0, NULL, &image)) {
- return NULL;
- }
- } else {
- if (!Find_GlyphByIndex(font, glyph_index, PIXMAP, 0, 0, NULL, &image)) {
- return NULL;
- }
+ if (!Find_GlyphByIndex(font, glyph_index, COLOR, 0, 0, NULL, &image)) {
+ return NULL;
}
if (image->width == 0 || image->rows == 0) {