From aa0659b2ad16e8fbbed2f765dbba9ae5bd601fa8 Mon Sep 17 00:00:00 2001
From: Ozkan Sezer <[EMAIL REDACTED]>
Date: Sun, 8 May 2022 20:10:20 +0300
Subject: [PATCH] fix build in c90 mode
---
SDL_ttf.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/SDL_ttf.c b/SDL_ttf.c
index 4a12db0..215a63b 100644
--- a/SDL_ttf.c
+++ b/SDL_ttf.c
@@ -439,12 +439,12 @@ static SDL_INLINE void BG_Blended_LCD(const TTF_Image *image, Uint32 *destinatio
Uint8 bg_r, bg_g, bg_b;
Uint32 bg_a;
+ int x, y = 0;
+
fg_r = fg->r;
fg_g = fg->g;
fg_b = fg->b;
- int x, y = 0;
-
while (height--) {
y++;
x = 0;
@@ -454,7 +454,6 @@ static SDL_INLINE void BG_Blended_LCD(const TTF_Image *image, Uint32 *destinatio
tmp = *src++;
if (tmp) {
-
bg = *dst;
bg_a = bg & 0xff000000;