Skip to content

Commit fbb708c

Browse files
authored
Merge pull request #95 from retro-wertz/patch-2
Fixes this #93
2 parents 0ab3558 + 2412114 commit fbb708c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/gba.cpp

+3
Original file line numberDiff line numberDiff line change
@@ -7268,6 +7268,9 @@ u16 pa, u16 pb, u16 pc, u16 pd, int& currentX, int& currentY, int changed)
72687268

72697269
u32 x0 = max( 0, (int32_t)( + (-realX + dx - 1)) / dx);
72707270
u32 x1 = min(240, (int32_t)((sizeX << 8) + (-realX + dx - 1)) / dx);
7271+
7272+
if (x1 >= sizeX)
7273+
goto skipLine;
72717274

72727275
realX += dx * x0;
72737276

0 commit comments

Comments
 (0)