From 68c9b18460eb158def84038fb730893e43390f3b Mon Sep 17 00:00:00 2001 From: Jaklyy <102590697+Jaklyy@users.noreply.github.com> Date: Wed, 29 Nov 2023 21:18:34 -0500 Subject: [PATCH] fix testing breaking completely with imperfect rendering --- source/main.cpp | 9 +++++++++ source/main.h | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/source/main.cpp b/source/main.cpp index c033f02..9ba60a9 100644 --- a/source/main.cpp +++ b/source/main.cpp @@ -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) diff --git a/source/main.h b/source/main.h index 88624a1..3081d6a 100644 --- a/source/main.h +++ b/source/main.h @@ -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},