From 3a0e9dbea8d76da58108cd118e1a1938ae9c690f Mon Sep 17 00:00:00 2001 From: Dimitris Panokostas Date: Thu, 12 Sep 2024 17:34:50 +0200 Subject: [PATCH] Fixed sdlgraphics.cpp --- src/sdl/sdlgraphics.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sdl/sdlgraphics.cpp b/src/sdl/sdlgraphics.cpp index 630457b..55a6919 100644 --- a/src/sdl/sdlgraphics.cpp +++ b/src/sdl/sdlgraphics.cpp @@ -200,9 +200,9 @@ namespace gcn const int y2 = area.y + area.height < top.y + top.height ? area.y + area.height : top.y + top.height; SDL_LockSurface(mTarget); - for (y = y1; y < y2; y++) + for (int y = y1; y < y2; y++) { - for (x = x1; x < x2; x++) + for (int x = x1; x < x2; x++) { SDLputPixelAlpha(mTarget, x, y, mColor); }