From c95bb332164470b645fc2c346f6197500af69d3e Mon Sep 17 00:00:00 2001 From: Sergey Lipskiy Date: Sun, 27 Apr 2014 18:44:24 +0700 Subject: [PATCH] Correct frame buffer height calculation in FillRect. It was broken in commit a9064e14f3a40 Mario Tennis works again. --- gDP.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gDP.cpp b/gDP.cpp index b0118002..60c9cff2 100644 --- a/gDP.cpp +++ b/gDP.cpp @@ -802,7 +802,7 @@ void gDPFillRectangle( s32 ulx, s32 uly, s32 lrx, s32 lry ) OGL_DrawRect( ulx, uly, lrx, lry, (gDP.otherMode.cycleType == G_CYC_FILL) ? fillColor : &gDP.blendColor.r ); gDP.colorImage.changed = TRUE; - if (gDP.colorImage.width < 64) + if (gDP.otherMode.cycleType == G_CYC_FILL) gDP.colorImage.height = (u32)max( (s32)gDP.colorImage.height, lry ); else gDP.colorImage.height = max( gDP.colorImage.height, (u32)gDP.scissor.lry );