SDL_ttf: Fixed emoji having transparent alpha

From 939c701343e224ab78f5fbebf26a19286d567760 Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Wed, 29 Jan 2025 09:40:25 -0800
Subject: [PATCH] Fixed emoji having transparent alpha

Fixes https://github.com/libsdl-org/SDL_ttf/issues/489
---
 src/SDL_ttf.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/SDL_ttf.c b/src/SDL_ttf.c
index 48afcc15..cb07a00d 100644
--- a/src/SDL_ttf.c
+++ b/src/SDL_ttf.c
@@ -1197,7 +1197,7 @@ static bool Render_Line_##NAME(TTF_Font *font, SDL_Surface *textbuf, int xstart,
     const int alignment = Get_Alignment() - 1;                                                                          \
     const int bpp = ((IS_BLENDED || IS_LCD) ? 4 : 1);                                                                   \
     int i;                                                                                                              \
-    Uint8 fg_alpha = (fg ? fg->a : 0);                                                                                  \
+    Uint8 fg_alpha = (fg ? fg->a : SDL_ALPHA_OPAQUE);                                                                                  \
     for (i = 0; i < font->positions->len; i++) {                                                                        \
         GlyphPosition *pos = &font->positions->pos[i];                                                                  \
         TTF_Font *glyph_font = pos->font;                                                                               \