From fd650cf1334531aad36d8d27312a668ec9d33972 Mon Sep 17 00:00:00 2001 From: Jaklyy <102590697+Jaklyy@users.noreply.github.com> Date: Sat, 30 Mar 2024 13:23:41 -0400 Subject: [PATCH] minor clean up i forgot to do --- src/GPU3D_Soft.h | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/GPU3D_Soft.h b/src/GPU3D_Soft.h index d19db7e4..ddb3f7b2 100644 --- a/src/GPU3D_Soft.h +++ b/src/GPU3D_Soft.h @@ -81,11 +81,10 @@ private: this->xdiff = x1 - x0; this->wbuffer = wbuffer; - // calculate quotient and remainder for Z interpolation + // calculate increment and init counter for Z interpolation if (!dir && !wbuffer && xdiff != 0) { - // remainder is unused for this path - this->zquo = ((z1 - z0) >> 1) / xdiff << 1; + this->zincr = ((z1 - z0) >> 1) / xdiff << 1; this->zcounter = z0; } @@ -194,7 +193,7 @@ private: } else { - return zcounter += zquo; + return zcounter += zincr; } } } @@ -206,7 +205,7 @@ private: bool linear; bool wbuffer; - s32 zquo; + s32 zincr; s32 zcounter; s32 w0n, w0d, w1d;