From 10ea4d9a804edd60884ac95b2e569b2c8b2f5e68 Mon Sep 17 00:00:00 2001
From: Anonymous Maarten <[EMAIL REDACTED]>
Date: Thu, 25 Jan 2024 19:54:38 +0100
Subject: [PATCH] =?UTF-8?q?stb:=20fix=20declaration=20of=20=E2=80=98src?=
=?UTF-8?q?=E2=80=99=20shadows=20a=20parameter?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/IMG_stb.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/IMG_stb.c b/src/IMG_stb.c
index bb697852..243c9c38 100644
--- a/src/IMG_stb.c
+++ b/src/IMG_stb.c
@@ -220,15 +220,15 @@ SDL_Surface *IMG_LoadSTB_RW(SDL_RWops *src)
} else if (format == STBI_grey_alpha) {
surface = SDL_CreateSurface(w, h, SDL_PIXELFORMAT_RGBA32);
if (surface) {
- Uint8 *src = pixels;
+ Uint8 *src_ptr = pixels;
Uint8 *dst = (Uint8 *)surface->pixels;
int skip = surface->pitch - (surface->w * 4);
int row, col;
for (row = 0; row < h; ++row) {
for (col = 0; col < w; ++col) {
- Uint8 c = *src++;
- Uint8 a = *src++;
+ Uint8 c = *src_ptr++;
+ Uint8 a = *src_ptr++;
*dst++ = c;
*dst++ = c;
*dst++ = c;