From c5aed83513357fc7993bb5129a69d651e6feb2d0 Mon Sep 17 00:00:00 2001 From: "XTra.KrazzY" Date: Thu, 19 Feb 2009 01:24:33 +0000 Subject: [PATCH] Fixed texture overlays. Can I remove the OVERLAY_TEXFMT definition? It just makes the code look messy. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2306 8ced0084-cf51-0410-be5f-012b33b47a6e --- .../Core/VideoCommon/Src/TextureDecoder.cpp | 38 +++++++++++++++---- 1 file changed, 30 insertions(+), 8 deletions(-) diff --git a/Source/Core/VideoCommon/Src/TextureDecoder.cpp b/Source/Core/VideoCommon/Src/TextureDecoder.cpp index 252f1843a1..8f3ac0bafd 100644 --- a/Source/Core/VideoCommon/Src/TextureDecoder.cpp +++ b/Source/Core/VideoCommon/Src/TextureDecoder.cpp @@ -21,10 +21,7 @@ #include "CPUDetect.h" #include "TextureDecoder.h" #include "LookUpTables.h" -#include -#ifdef __SSSE3__ -#include -#endif + //Uncomment this to enable Texture Format ID overlays #define OVERLAY_TEXFMT @@ -506,9 +503,6 @@ PC_TexFormat TexDecoder_Decode(u8 *dst, const u8 *src, int width, int height, in if((!TexFmt_Overlay_Enable)||(retval==PC_TEX_FMT_NONE)) return retval; - // assume ABGR/ARGB (32bit) - int *dtp = (int*)dst; - int w = min(width,40); int h = min(height,10); @@ -539,7 +533,35 @@ PC_TexFormat TexDecoder_Decode(u8 *dst, const u8 *src, int width, int height, in { for(int x=0;x