TextureDecoder: Fix off-by-one errors in CMPR

This commit is contained in:
hthh
2017-01-14 01:41:44 +11:00
parent 0b6e5765dd
commit 5d4e4aa561
4 changed files with 61 additions and 61 deletions

View File

@@ -88,3 +88,8 @@ void TexDecoder_SetTexFmtOverlayOptions(bool enable, bool center);
/* Internal method, implemented by TextureDecoder_Generic and TextureDecoder_x64. */
void _TexDecoder_DecodeImpl(u32* dst, const u8* src, int width, int height, int texformat,
const u8* tlut, TlutFormat tlutfmt);
static constexpr int DXTBlend(int v1, int v2)
{
return ((v1 * 3 + v2 * 5) >> 3);
}