From 65ad89ae3ae2871ae2795faf86c6ec82af9fa76c Mon Sep 17 00:00:00 2001 From: S2S Date: Sun, 12 Jul 2020 22:45:38 +0200 Subject: [PATCH] Delay texcoord correction until multiplying by hdratio --- src/GraphicsDrawer.cpp | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/GraphicsDrawer.cpp b/src/GraphicsDrawer.cpp index f2cd907d..44d26bea 100644 --- a/src/GraphicsDrawer.cpp +++ b/src/GraphicsDrawer.cpp @@ -1379,6 +1379,11 @@ void GraphicsDrawer::drawTexturedRect(const TexturedRectParams & _params) } } + texST[t].s0 *= cache.current[t]->hdRatioS; + texST[t].t0 *= cache.current[t]->hdRatioT; + texST[t].s1 *= cache.current[t]->hdRatioS; + texST[t].t1 *= cache.current[t]->hdRatioT; + if (gDP.otherMode.textureFilter != G_TF_POINT && gDP.otherMode.cycleType != G_CYC_COPY) { texST[t].s0 -= 0.5f; texST[t].t0 -= 0.5f; @@ -1386,12 +1391,6 @@ void GraphicsDrawer::drawTexturedRect(const TexturedRectParams & _params) texST[t].t1 -= 0.5f; } - texST[t].s0 *= cache.current[t]->hdRatioS; - texST[t].t0 *= cache.current[t]->hdRatioT; - texST[t].s1 *= cache.current[t]->hdRatioS; - texST[t].t1 *= cache.current[t]->hdRatioT; - - } }