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

Fix gDP.colorImage.height in gDPTextureRectangle.

This commit is contained in:
Sergey Lipskiy 2014-09-26 14:50:17 +07:00
parent 2bf5c83be1
commit f829a0d727

View File

@ -895,8 +895,11 @@ void gDPTextureRectangle( f32 ulx, f32 uly, f32 lrx, f32 lry, s32 tile, f32 s, f
gSP.textureTile[1] = textureTileOrg[1];
gDP.colorImage.changed = TRUE;
if (gDP.colorImage.width < 64)
gDP.colorImage.height = (u32)max( (f32)gDP.colorImage.height, lry );
if (gDP.otherMode.cycleType == G_CYC_COPY)
if (VI.interlaced && lry > VI.height)
gDP.colorImage.height = (u32)max((s32)gDP.colorImage.height, lry - 1);
else
gDP.colorImage.height = (u32)max((s32)gDP.colorImage.height, lry);
else
gDP.colorImage.height = max( gDP.colorImage.height, (u32)gDP.scissor.lry );