From 7d3dbde234c9a2621a7d14cbc76dd8f4f81fd006 Mon Sep 17 00:00:00 2001 From: magumagu9 Date: Sat, 17 Jan 2009 20:46:18 +0000 Subject: [PATCH] Don't skip the bottom half of the texture; fixes the text in Gamecube Tales of Symphonia with safe textures on. I haven't looked too carefully at exactly which textures are affected, though. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1900 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Core/VideoCommon/Src/TextureDecoder.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Core/VideoCommon/Src/TextureDecoder.cpp b/Source/Core/VideoCommon/Src/TextureDecoder.cpp index a8e24cc948..dd7865bc14 100644 --- a/Source/Core/VideoCommon/Src/TextureDecoder.cpp +++ b/Source/Core/VideoCommon/Src/TextureDecoder.cpp @@ -96,7 +96,7 @@ u32 TexDecoder_GetSafeTextureHash(const u8 *src, int width, int height, int texf const int rowEnd = (width - edgeSkip)/4; const int byteWidth = TexDecoder_GetTextureSizeInBytes(width, 1, texformat); - const int colEnd = height / 2 - edgeSkip; + const int colEnd = height - edgeSkip; u32 hash = seed ? seed : 0x1337c0de; for (int y = edgeSkip; y < colEnd; y += colSkip)