From dd2e45ec614177595d6ff27976c7821252bee019 Mon Sep 17 00:00:00 2001 From: LittlePlanetCD Date: Sun, 7 Apr 2024 12:21:08 -0500 Subject: [PATCH] fix yellow line bug in Sonic 2 Special Stages i think this is what is done in the mobile port, same with Origins afaik. --- RSDKv4/Drawing.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RSDKv4/Drawing.cpp b/RSDKv4/Drawing.cpp index 57ba9f023..9756eeedd 100644 --- a/RSDKv4/Drawing.cpp +++ b/RSDKv4/Drawing.cpp @@ -4344,7 +4344,7 @@ void DrawTexturedFaceBlended(void *v, byte sheetID) } ushort *fbPtr = &frameBufferPtr[startX]; frameBufferPtr += GFX_LINESIZE; - int counter = posDifference + 1; + int counter = posDifference; while (counter--) { if (UPos < 0) UPos = 0;