From 67cab529090590d1720cf5f942ca17c92b25a98f Mon Sep 17 00:00:00 2001 From: Sergey Lipskiy Date: Sat, 5 Mar 2016 20:09:11 +0600 Subject: [PATCH] Fix tile width calculation in LOADTYPE_TILE mode. Fixed background textures size in Dark Rift. --- src/Textures.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Textures.cpp b/src/Textures.cpp index 6463a4b7..427718ed 100644 --- a/src/Textures.cpp +++ b/src/Textures.cpp @@ -604,7 +604,7 @@ void _calcTileSizes(u32 _t, TileSizes & _sizes, gDPTile * _pLoadTile) if (pTile->masks && ((maskWidth * maskHeight) <= maxTexels)) width = maskWidth; // Use mask width if set and valid else { - width = min(info.width, info.texWidth); + width = info.width; if (info.size > pTile->size) width <<= info.size - pTile->size; }