Left edge must be retested because we're not using whole tile widths.

This commit is contained in:
Brandon Wright 2018-05-22 15:16:14 -05:00
parent c29ca215d0
commit d7492f1804
1 changed files with 1 additions and 2 deletions

View File

@ -1787,14 +1787,13 @@ static void DrawBackgroundOffsetMosaic (int bg, uint8 Zh, uint8 Zl, int VOffOff)
uint32 Right = GFX.Clip[bg].Right[clip];
uint32 Offset = Left * PixWidth + (Y + MosaicStart) * GFX.PPL;
uint32 LineHOffset = LineData[Y].BG[bg].HOffset;
bool8 left_edge = (Left < (8 - (LineHOffset & 7)));
uint32 Width = Right - Left;
while (Left < Right)
{
uint32 VOffset, HOffset;
if (left_edge)
if (Left < (8 - (LineHOffset & 7)))
{
// SNES cannot do OPT for leftmost tile column
VOffset = LineData[Y].BG[bg].VOffset;