Removed some hacks that were supposed to force blending for sprites and that actually cause glitches.

This commit is contained in:
luigi__ 2009-01-16 22:07:58 +00:00
parent 171b4aeeba
commit f035b9d331
1 changed files with 2 additions and 24 deletions

View File

@ -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,