Skip to content

Commit

Permalink
fix testing breaking completely with imperfect rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaklyy committed Nov 30, 2023
1 parent a82ac14 commit 68c9b18
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions source/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -397,6 +397,15 @@ bool test(const bool multispan, const u8 colormode)
{
VRAM_A[offset] = (VRAM_A[offset] & ~0x7FFF) | ColorMissing;
errorfound = true;
if (colormode != 0)
{
while (bits+shift > 32)
{
filebuffer = readData(filebuffer, 1);
shift -= 8;
}
getColor(bits, mask);
}
}
}
else if (x < startspan || x > endspan)
Expand Down
2 changes: 1 addition & 1 deletion source/main.h
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ constexpr TestData Tests[] =
.OutlineColors = {0b000001111100000},
.ColorMode = 2,
.ExtendedTestData = 1},
// Mirrored horizontally? -
// Mirrored horizontally? - Yes
{.Vertices = {{32, -32}, {-32, -32}, {-32, 16}, {-512}},
.Disp3DCnt = GL_OUTLINE,
.OutlineColors = {0b000001111100000},
Expand Down

0 comments on commit 68c9b18

Please sign in to comment.