From ff67350c8c291a7ff4aa3c04b58d18ea19954db9 Mon Sep 17 00:00:00 2001 From: Sergey Lipskiy Date: Sat, 12 Mar 2016 20:02:12 +0600 Subject: [PATCH] Revert "Increase only y coordinate of rect in COPY or FILL mode." because it causes regression in Mischief Makers. This reverts commit 143a68bc073778899ea9bbcb8221a70d08804f02. --- src/gDP.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/gDP.cpp b/src/gDP.cpp index 08d8c2ff..660797ab 100644 --- a/src/gDP.cpp +++ b/src/gDP.cpp @@ -740,7 +740,10 @@ void gDPFillRDRAM(u32 address, s32 ulx, s32 uly, s32 lrx, s32 lry, u32 width, u3 void gDPFillRectangle( s32 ulx, s32 uly, s32 lrx, s32 lry ) { OGLRender & render = video().getRender(); - if (gDP.otherMode.cycleType == G_CYC_FILL || lry == uly) + if (gDP.otherMode.cycleType == G_CYC_FILL) { + ++lrx; + ++lry; + } else if (lry == uly) ++lry; if (gDP.depthImageAddress == gDP.colorImage.address) { @@ -823,6 +826,7 @@ void gDPTextureRectangle( f32 ulx, f32 uly, f32 lrx, f32 lry, s32 tile, f32 s, f { if (gDP.otherMode.cycleType == G_CYC_COPY) { dsdx = 1.0f; + lrx += 1.0f; lry += 1.0f; } lry = max(lry, uly + 1.0f);