1
0
mirror of https://github.com/blawar/GLideN64.git synced 2024-07-04 10:03:36 +00:00

Correct frame buffer height calculation in FillRect.

It was broken in commit a9064e14f3a40

Mario Tennis works again.
This commit is contained in:
Sergey Lipskiy 2014-04-27 18:44:24 +07:00
parent 16bd31388e
commit c95bb33216

View File

@ -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 );