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

Correct tile size calculation.

Fixed text in Zelda debug rom. See bug reported by AriaHiro64 in #1885
This commit is contained in:
Sergey Lipskiy 2019-08-21 12:16:26 +07:00
parent c28ea61b8f
commit 5c5c218e41

View File

@ -629,11 +629,11 @@ void _calcTileSizes(u32 _t, TileSizes & _sizes, gDPTile * _pLoadTile)
height = mask_height;
}
_sizes.width = width;
_sizes.height = height;
_sizes.clampWidth = (pTile->clamps && gDP.otherMode.cycleType != G_CYC_COPY) ? tileWidth : width;
_sizes.clampHeight = (pTile->clampt && gDP.otherMode.cycleType != G_CYC_COPY) ? tileHeight : height;
_sizes.width = (pTile->clamps != 0 && info.loadType == LOADTYPE_TILE) ? _sizes.clampWidth : width;
_sizes.height = (pTile->clampt != 0 && info.loadType == LOADTYPE_TILE) ? _sizes.clampHeight : height;
}