mirror of
https://github.com/holub/mame
synced 2025-05-24 06:30:04 +03:00
Haze: refactored some video stuff in toaplan 1, not worth
This commit is contained in:
parent
2eb8a58559
commit
d5060616e8
@ -80,6 +80,9 @@ public:
|
|||||||
int reset; /* Hack! See toaplan1_bcu_control below */
|
int reset; /* Hack! See toaplan1_bcu_control below */
|
||||||
|
|
||||||
tilemap_t *pf1_tilemap, *pf2_tilemap, *pf3_tilemap, *pf4_tilemap;
|
tilemap_t *pf1_tilemap, *pf2_tilemap, *pf3_tilemap, *pf4_tilemap;
|
||||||
|
|
||||||
|
// an empty tile, so that we can safely disable tiles
|
||||||
|
UINT8 empty_tile[8*8];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
@ -149,8 +149,8 @@ static TILE_GET_INFO( get_pf1_tile_info )
|
|||||||
tile_number,
|
tile_number,
|
||||||
color,
|
color,
|
||||||
0);
|
0);
|
||||||
if (state->pf1_tilevram16[2*tile_index+1] & 0x8000) tileinfo->category = 0;
|
if (state->pf1_tilevram16[2*tile_index+1] & 0x8000) tileinfo->pen_data = state->empty_tile;
|
||||||
else tileinfo->category = (attrib & 0xf000) >> 12;
|
tileinfo->category = (attrib & 0xf000) >> 12;
|
||||||
}
|
}
|
||||||
|
|
||||||
static TILE_GET_INFO( get_pf2_tile_info )
|
static TILE_GET_INFO( get_pf2_tile_info )
|
||||||
@ -166,8 +166,8 @@ static TILE_GET_INFO( get_pf2_tile_info )
|
|||||||
tile_number,
|
tile_number,
|
||||||
color,
|
color,
|
||||||
0);
|
0);
|
||||||
if (state->pf2_tilevram16[2*tile_index+1] & 0x8000) tileinfo->category = 0;
|
if (state->pf2_tilevram16[2*tile_index+1] & 0x8000) tileinfo->pen_data = state->empty_tile;
|
||||||
else tileinfo->category = (attrib & 0xf000) >> 12;
|
tileinfo->category = (attrib & 0xf000) >> 12;
|
||||||
}
|
}
|
||||||
|
|
||||||
static TILE_GET_INFO( get_pf3_tile_info )
|
static TILE_GET_INFO( get_pf3_tile_info )
|
||||||
@ -183,8 +183,8 @@ static TILE_GET_INFO( get_pf3_tile_info )
|
|||||||
tile_number,
|
tile_number,
|
||||||
color,
|
color,
|
||||||
0);
|
0);
|
||||||
if (state->pf3_tilevram16[2*tile_index+1] & 0x8000) tileinfo->category = 0;
|
if (state->pf3_tilevram16[2*tile_index+1] & 0x8000) tileinfo->pen_data = state->empty_tile;
|
||||||
else tileinfo->category = (attrib & 0xf000) >> 12;
|
tileinfo->category = (attrib & 0xf000) >> 12;
|
||||||
}
|
}
|
||||||
|
|
||||||
static TILE_GET_INFO( get_pf4_tile_info )
|
static TILE_GET_INFO( get_pf4_tile_info )
|
||||||
@ -200,8 +200,8 @@ static TILE_GET_INFO( get_pf4_tile_info )
|
|||||||
tile_number,
|
tile_number,
|
||||||
color,
|
color,
|
||||||
0);
|
0);
|
||||||
if (state->pf4_tilevram16[2*tile_index+1] & 0x8000) tileinfo->category = 0;
|
if (state->pf4_tilevram16[2*tile_index+1] & 0x8000) tileinfo->pen_data = state->empty_tile;
|
||||||
else tileinfo->category = (attrib & 0xf000) >> 12;
|
tileinfo->category = (attrib & 0xf000) >> 12;
|
||||||
}
|
}
|
||||||
|
|
||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
@ -223,6 +223,9 @@ static void toaplan1_create_tilemaps(running_machine *machine)
|
|||||||
tilemap_set_transparent_pen(state->pf2_tilemap, 0);
|
tilemap_set_transparent_pen(state->pf2_tilemap, 0);
|
||||||
tilemap_set_transparent_pen(state->pf3_tilemap, 0);
|
tilemap_set_transparent_pen(state->pf3_tilemap, 0);
|
||||||
tilemap_set_transparent_pen(state->pf4_tilemap, 0);
|
tilemap_set_transparent_pen(state->pf4_tilemap, 0);
|
||||||
|
|
||||||
|
|
||||||
|
memset(state->empty_tile, 0x00, sizeof(state->empty_tile));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user