mirror of
https://github.com/holub/mame
synced 2025-06-07 05:13:46 +03:00
Reverted last commit since it breaks other things...
This commit is contained in:
parent
14c24b5e88
commit
273cb7af50
@ -282,7 +282,7 @@ INLINE void snes_draw_tile_2(UINT8 screen, UINT8 layer, UINT16 tileaddr, INT16 x
|
|||||||
colour &= snes_ppu.clipmasks[layer][ii];
|
colour &= snes_ppu.clipmasks[layer][ii];
|
||||||
|
|
||||||
/* Only draw if we have a colour (0 == transparent) */
|
/* 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) )
|
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];
|
colour &= snes_ppu.clipmasks[layer][ii];
|
||||||
|
|
||||||
/* Only draw if we have a colour (0 == transparent) */
|
/* 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) )
|
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
|
if( snes_ram[MOSAIC] & (1 << layer) ) // handle horizontal mosaic
|
||||||
{
|
{
|
||||||
int x_mos;
|
int x_mos;
|
||||||
|
|
||||||
//TODO: 512 modes has the h values doubled.
|
//TODO: 512 modes has the h values doubled.
|
||||||
for(x_mos = 0;x_mos < (((snes_ram[MOSAIC] & 0xf0)>>4)+1) ; x_mos++)
|
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];
|
colour &= snes_ppu.clipmasks[layer][ii];
|
||||||
|
|
||||||
/* Only draw if we have a colour (0 == transparent) */
|
/* 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) )
|
if( (scanlines[screen].zbuf[ii] <= priority) && (ii >= 0) )
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user