SDL_ttf: Color: update blended color function to prevent extra multiplications in macro

From 9053d6e1c16250407e98ae4f66ddb00712ac76d7 Mon Sep 17 00:00:00 2001
From: Sylvain <[EMAIL REDACTED]>
Date: Fri, 2 Jul 2021 23:27:17 +0200
Subject: [PATCH] Color: update blended color function to prevent extra
 multiplications in macro

---
 SDL_ttf.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/SDL_ttf.c b/SDL_ttf.c
index 233c25d..731b920 100644
--- a/SDL_ttf.c
+++ b/SDL_ttf.c
@@ -386,7 +386,8 @@ static SDL_INLINE void BG_Blended_Color(const TTF_Image *image, Uint32 *destinat
                     tmp = *src++;
                     alpha = tmp >> 24;
                     tmp &= ~0xFF000000;
-                    alpha =  DIVIDE_BY_255(fg_alpha * alpha) << 24;
+                    alpha = fg_alpha * alpha;
+                    alpha =  DIVIDE_BY_255(alpha) << 24;
                     *dst++ = tmp | alpha
                     , width);
             /* *INDENT-ON* */