From b96d7c5fadd6a9e8310c94b4e9a7a0f3d587411e Mon Sep 17 00:00:00 2001 From: Jaklyy <102590697+Jaklyy@users.noreply.github.com> Date: Fri, 26 Apr 2024 21:58:05 -0400 Subject: [PATCH] AAAAAAA --- src/GPU3D_Soft.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/GPU3D_Soft.cpp b/src/GPU3D_Soft.cpp index 33851f03..13ebd9da 100644 --- a/src/GPU3D_Soft.cpp +++ b/src/GPU3D_Soft.cpp @@ -141,9 +141,9 @@ void SoftRenderer::SetThreaded(bool threaded, GPU& gpu) noexcept template inline void SoftRenderer::ColorConv(const u16 color, u8* r, u8* g, u8* b) const { - *r = (color << 1) & 0x3E; if (colorcorrect && *r) *r++; - *g = (color >> 4) & 0x3E; if (colorcorrect && *g) *g++; - *b = (color >> 9) & 0x3E; if (colorcorrect && *b) *b++; + *r = (color << 1) & 0x3E; if (colorcorrect && *r) ++*r; + *g = (color >> 4) & 0x3E; if (colorcorrect && *g) ++*g; + *b = (color >> 9) & 0x3E; if (colorcorrect && *b) ++*b; } void SoftRenderer::TextureLookup(const GPU& gpu, u32 texparam, u32 texpal, s16 s, s16 t, u8* tr, u8* tg, u8* tb, u8* alpha) const