From f035b9d331bcff7effed4e67d44f2b723c833cce Mon Sep 17 00:00:00 2001 From: luigi__ Date: Fri, 16 Jan 2009 22:07:58 +0000 Subject: [PATCH] Removed some hacks that were supposed to force blending for sprites and that actually cause glitches. --- desmume/src/GPU.cpp | 26 ++------------------------ 1 file changed, 2 insertions(+), 24 deletions(-) diff --git a/desmume/src/GPU.cpp b/desmume/src/GPU.cpp index f503ef3d1..a68406608 100644 --- a/desmume/src/GPU.cpp +++ b/desmume/src/GPU.cpp @@ -1547,13 +1547,7 @@ INLINE void render_sprite_256 ( GPU * gpu, u16 l, u8 * dst, u8 * src, u16 * pal, { int i; u8 palette_entry; - u16 color, oldBLDCNT; - - if (alpha) - { - oldBLDCNT = gpu->BLDCNT; - gpu->BLDCNT = gpu->BLDCNT | 0x10; - } + u16 color; for(i = 0; i < lg; i++, ++sprX, x+=xdir) { @@ -1568,11 +1562,6 @@ INLINE void render_sprite_256 ( GPU * gpu, u16 l, u8 * dst, u8 * src, u16 * pal, prioTab[sprX] = prio; } } - - if (alpha) - { - gpu->BLDCNT = oldBLDCNT; - } } INLINE void render_sprite_16 ( GPU * gpu, u16 l, u8 * dst, u8 * src, u16 * pal, @@ -1580,13 +1569,7 @@ INLINE void render_sprite_16 ( GPU * gpu, u16 l, u8 * dst, u8 * src, u16 * pal, { int i; u8 palette, palette_entry; - u16 color, oldBLDCNT, x1; - - if (alpha) - { - oldBLDCNT = gpu->BLDCNT; - gpu->BLDCNT = gpu->BLDCNT | 0x10; - } + u16 color, x1; for(i = 0; i < lg; i++, ++sprX, x+=xdir) { @@ -1604,11 +1587,6 @@ INLINE void render_sprite_16 ( GPU * gpu, u16 l, u8 * dst, u8 * src, u16 * pal, prioTab[sprX] = prio; } } - - if (alpha) - { - gpu->BLDCNT = oldBLDCNT; - } } INLINE void render_sprite_Win (GPU * gpu, u16 l, u8 * src,