summaryrefslogtreecommitdiffstatshomepage
path: root/src
diff options
context:
space:
mode:
author Angelo Salese <angelosa@users.noreply.github.com>2009-07-19 18:02:45 +0000
committer Angelo Salese <angelosa@users.noreply.github.com>2009-07-19 18:02:45 +0000
commit273cb7af5047671573856e96004d218183bff85c (patch)
treed75fa8ff50294d515248a7a19f0ffeaef88244c1 /src
parent14c24b5e88e2e41c323e0ed1320a0c4a42a6f267 (diff)
Reverted last commit since it breaks other things...
Diffstat (limited to 'src')
-rw-r--r--src/mame/video/snes.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/mame/video/snes.c b/src/mame/video/snes.c
index 6369bdb1047..291640f67f2 100644
--- a/src/mame/video/snes.c
+++ b/src/mame/video/snes.c
@@ -282,7 +282,7 @@ INLINE void snes_draw_tile_2(UINT8 screen, UINT8 layer, UINT16 tileaddr, INT16 x
colour &= snes_ppu.clipmasks[layer][ii];
/* Only draw if we have a colour (0 == transparent) */
- if( colour || snes_ram[MOSAIC] & (1 << layer))
+ if( colour )
{
if( (scanlines[screen].zbuf[ii] <= priority) && (ii >= 0) )
{
@@ -375,7 +375,7 @@ INLINE void snes_draw_tile_4(UINT8 screen, UINT8 layer, UINT16 tileaddr, INT16 x
colour &= snes_ppu.clipmasks[layer][ii];
/* Only draw if we have a colour (0 == transparent) */
- if( colour || snes_ram[MOSAIC] & (1 << layer))
+ if( colour )
{
if( (scanlines[screen].zbuf[ii] <= priority) && (ii >= 0) )
{
@@ -385,6 +385,7 @@ INLINE void snes_draw_tile_4(UINT8 screen, UINT8 layer, UINT16 tileaddr, INT16 x
if( snes_ram[MOSAIC] & (1 << layer) ) // handle horizontal mosaic
{
int x_mos;
+
//TODO: 512 modes has the h values doubled.
for(x_mos = 0;x_mos < (((snes_ram[MOSAIC] & 0xf0)>>4)+1) ; x_mos++)
{
@@ -475,7 +476,7 @@ INLINE void snes_draw_tile_8(UINT8 screen, UINT8 layer, UINT16 tileaddr, INT16 x
colour &= snes_ppu.clipmasks[layer][ii];
/* Only draw if we have a colour (0 == transparent) */
- if( colour || snes_ram[MOSAIC] & (1 << layer))
+ if( colour )
{
if( (scanlines[screen].zbuf[ii] <= priority) && (ii >= 0) )
{