You now specify a gfxdecode device once when you create a tilemap, rather than each time in the tile info callback. Updated all drivers accordingly [Alex Jackson]
This commit is contained in:
parent
69e33bcb5e
commit
95aafe03e5
@ -214,9 +214,7 @@ TILE_GET_INFO_MEMBER(tc0091lvc_device::get_bg0_tile_info)
|
||||
| ((m_vregs[(attr & 0xc) >> 2]) << 10);
|
||||
// | (state->m_horshoes_gfxbank << 12);
|
||||
|
||||
SET_TILE_INFO_MEMBER(
|
||||
*m_gfxdecode,
|
||||
0,
|
||||
SET_TILE_INFO_MEMBER(0,
|
||||
code,
|
||||
(attr & 0xf0) >> 4,
|
||||
0);
|
||||
@ -230,9 +228,7 @@ TILE_GET_INFO_MEMBER(tc0091lvc_device::get_bg1_tile_info)
|
||||
| ((m_vregs[(attr & 0xc) >> 2]) << 10);
|
||||
// | (state->m_horshoes_gfxbank << 12);
|
||||
|
||||
SET_TILE_INFO_MEMBER(
|
||||
*m_gfxdecode,
|
||||
0,
|
||||
SET_TILE_INFO_MEMBER(0,
|
||||
code,
|
||||
(attr & 0xf0) >> 4,
|
||||
0);
|
||||
@ -244,9 +240,7 @@ TILE_GET_INFO_MEMBER(tc0091lvc_device::get_tx_tile_info)
|
||||
UINT16 code = m_tvram[2 * tile_index]
|
||||
| ((attr & 0x07) << 8);
|
||||
|
||||
SET_TILE_INFO_MEMBER(
|
||||
*m_gfxdecode,
|
||||
m_gfx_index,
|
||||
SET_TILE_INFO_MEMBER(m_gfx_index,
|
||||
code,
|
||||
(attr & 0xf0) >> 4,
|
||||
0);
|
||||
@ -282,9 +276,9 @@ void tc0091lvc_device::device_start()
|
||||
m_tvram = m_pcg_ram + 0xa000;
|
||||
m_sprram = m_pcg_ram + 0xb000;
|
||||
|
||||
tx_tilemap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(tc0091lvc_device::get_tx_tile_info),this),TILEMAP_SCAN_ROWS,8,8,64,32);
|
||||
bg0_tilemap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(tc0091lvc_device::get_bg0_tile_info),this),TILEMAP_SCAN_ROWS,8,8,64,32);
|
||||
bg1_tilemap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(tc0091lvc_device::get_bg1_tile_info),this),TILEMAP_SCAN_ROWS,8,8,64,32);
|
||||
tx_tilemap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(tc0091lvc_device::get_tx_tile_info),this),TILEMAP_SCAN_ROWS,8,8,64,32);
|
||||
bg0_tilemap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(tc0091lvc_device::get_bg0_tile_info),this),TILEMAP_SCAN_ROWS,8,8,64,32);
|
||||
bg1_tilemap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(tc0091lvc_device::get_bg1_tile_info),this),TILEMAP_SCAN_ROWS,8,8,64,32);
|
||||
|
||||
tx_tilemap->set_transparent_pen(0);
|
||||
bg0_tilemap->set_transparent_pen(0);
|
||||
|
@ -343,7 +343,7 @@ tilemap_t::tilemap_t()
|
||||
// init - initialize the tilemap
|
||||
//-------------------------------------------------
|
||||
|
||||
tilemap_t &tilemap_t::init(tilemap_manager &manager, tilemap_get_info_delegate tile_get_info, tilemap_mapper_delegate mapper, int tilewidth, int tileheight, int cols, int rows)
|
||||
tilemap_t &tilemap_t::init(tilemap_manager &manager, gfxdecode_device &decoder, tilemap_get_info_delegate tile_get_info, tilemap_mapper_delegate mapper, int tilewidth, int tileheight, int cols, int rows)
|
||||
{
|
||||
// populate managers and devices
|
||||
m_manager = &manager;
|
||||
@ -401,8 +401,9 @@ tilemap_t &tilemap_t::init(tilemap_manager &manager, tilemap_get_info_delegate t
|
||||
// create the initial mappings
|
||||
mappings_create();
|
||||
|
||||
// set up the default pen mask
|
||||
// set up the default tile data
|
||||
memset(&m_tileinfo, 0, sizeof(m_tileinfo));
|
||||
m_tileinfo.decoder = &decoder;
|
||||
m_tileinfo.pen_mask = 0xff;
|
||||
m_tileinfo.gfxnum = 0xff;
|
||||
|
||||
@ -1497,18 +1498,18 @@ static const struct
|
||||
{ FUNC(tilemap_t::scan_cols_flip_xy) }
|
||||
};
|
||||
|
||||
tilemap_t &tilemap_manager::create(tilemap_get_info_delegate tile_get_info, tilemap_mapper_delegate mapper, int tilewidth, int tileheight, int cols, int rows, tilemap_t *allocated)
|
||||
tilemap_t &tilemap_manager::create(gfxdecode_device &decoder, tilemap_get_info_delegate tile_get_info, tilemap_mapper_delegate mapper, int tilewidth, int tileheight, int cols, int rows, tilemap_t *allocated)
|
||||
{
|
||||
if (allocated == NULL)
|
||||
allocated = auto_alloc(machine(), tilemap_t);
|
||||
return m_tilemap_list.append(allocated->init(*this, tile_get_info, mapper, tilewidth, tileheight, cols, rows));
|
||||
return m_tilemap_list.append(allocated->init(*this, decoder, tile_get_info, mapper, tilewidth, tileheight, cols, rows));
|
||||
}
|
||||
|
||||
tilemap_t &tilemap_manager::create(tilemap_get_info_delegate tile_get_info, tilemap_standard_mapper mapper, int tilewidth, int tileheight, int cols, int rows, tilemap_t *allocated)
|
||||
tilemap_t &tilemap_manager::create(gfxdecode_device &decoder, tilemap_get_info_delegate tile_get_info, tilemap_standard_mapper mapper, int tilewidth, int tileheight, int cols, int rows, tilemap_t *allocated)
|
||||
{
|
||||
if (allocated == NULL)
|
||||
allocated = auto_alloc(machine(), tilemap_t);
|
||||
return m_tilemap_list.append(allocated->init(*this, tile_get_info, tilemap_mapper_delegate(s_standard_mappers[mapper].func, s_standard_mappers[mapper].name, machine().driver_data()), tilewidth, tileheight, cols, rows));
|
||||
return m_tilemap_list.append(allocated->init(*this, decoder, tile_get_info, tilemap_mapper_delegate(s_standard_mappers[mapper].func, s_standard_mappers[mapper].name, machine().driver_data()), tilewidth, tileheight, cols, rows));
|
||||
}
|
||||
|
||||
|
||||
@ -1550,6 +1551,7 @@ const device_type TILEMAP = &device_creator<tilemap_device>;
|
||||
|
||||
tilemap_device::tilemap_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
|
||||
: device_t(mconfig, TILEMAP, "Tilemap", tag, owner, clock, "tilemap", __FILE__),
|
||||
m_gfxdecode(*this),
|
||||
m_standard_mapper(TILEMAP_STANDARD_COUNT),
|
||||
m_tile_width(8),
|
||||
m_tile_height(8),
|
||||
@ -1561,6 +1563,17 @@ tilemap_device::tilemap_device(const machine_config &mconfig, const char *tag, d
|
||||
}
|
||||
|
||||
|
||||
//-------------------------------------------------
|
||||
// static_set_gfxdecode_tag: Set the tag of the
|
||||
// gfx decoder
|
||||
//-------------------------------------------------
|
||||
|
||||
void tilemap_device::static_set_gfxdecode_tag(device_t &device, const char *tag)
|
||||
{
|
||||
downcast<tilemap_device &>(device).m_gfxdecode.set_tag(tag);
|
||||
}
|
||||
|
||||
|
||||
//-------------------------------------------------
|
||||
// static_set_bytes_per_entry: Set the
|
||||
// transparent pen
|
||||
@ -1723,9 +1736,9 @@ void tilemap_device::device_start()
|
||||
|
||||
// allocate the tilemap
|
||||
if (m_standard_mapper == TILEMAP_STANDARD_COUNT)
|
||||
machine().tilemap().create(m_get_info, m_mapper, m_tile_width, m_tile_height, m_num_columns, m_num_rows, this);
|
||||
machine().tilemap().create(m_gfxdecode, m_get_info, m_mapper, m_tile_width, m_tile_height, m_num_columns, m_num_rows, this);
|
||||
else
|
||||
machine().tilemap().create(m_get_info, m_standard_mapper, m_tile_width, m_tile_height, m_num_columns, m_num_rows, this);
|
||||
machine().tilemap().create(m_gfxdecode, m_get_info, m_standard_mapper, m_tile_width, m_tile_height, m_num_columns, m_num_rows, this);
|
||||
|
||||
// find the memory, if present
|
||||
const memory_share *share = memshare(tag());
|
||||
|
@ -359,6 +359,8 @@ enum tilemap_standard_mapper
|
||||
// primitives
|
||||
#define MCFG_TILEMAP_ADD(_tag) \
|
||||
MCFG_DEVICE_ADD(_tag, TILEMAP, 0)
|
||||
#define MCFG_TILEMAP_GFXDECODE(_gfxtag) \
|
||||
tilemap_device::static_set_gfxdecode_tag(*device, "^" _gfxtag);
|
||||
#define MCFG_TILEMAP_BYTES_PER_ENTRY(_bpe) \
|
||||
tilemap_device::static_set_bytes_per_entry(*device, _bpe);
|
||||
#define MCFG_TILEMAP_INFO_CB_DRIVER(_class, _method) \
|
||||
@ -377,27 +379,31 @@ enum tilemap_standard_mapper
|
||||
tilemap_device::static_set_transparent_pen(*device, _pen);
|
||||
|
||||
// common cases
|
||||
#define MCFG_TILEMAP_ADD_STANDARD(_tag, _bytes_per_entry, _class, _method, _tilewidth, _tileheight, _mapper, _columns, _rows) \
|
||||
#define MCFG_TILEMAP_ADD_STANDARD(_tag, _gfxtag, _bytes_per_entry, _class, _method, _tilewidth, _tileheight, _mapper, _columns, _rows) \
|
||||
MCFG_TILEMAP_ADD(_tag) \
|
||||
MCFG_TILEMAP_GFXDECODE(_gfxtag) \
|
||||
MCFG_TILEMAP_BYTES_PER_ENTRY(_bytes_per_entry) \
|
||||
MCFG_TILEMAP_INFO_CB_DRIVER(_class, _method) \
|
||||
MCFG_TILEMAP_LAYOUT_STANDARD(_mapper, _columns, _rows) \
|
||||
MCFG_TILEMAP_TILE_SIZE(_tilewidth, _tileheight)
|
||||
#define MCFG_TILEMAP_ADD_CUSTOM(_tag, _bytes_per_entry, _class, _method, _tilewidth, _tileheight, _mapper, _columns, _rows) \
|
||||
#define MCFG_TILEMAP_ADD_CUSTOM(_tag, _gfxtag, _bytes_per_entry, _class, _method, _tilewidth, _tileheight, _mapper, _columns, _rows) \
|
||||
MCFG_TILEMAP_ADD(_tag) \
|
||||
MCFG_TILEMAP_GFXDECODE(_gfxtag) \
|
||||
MCFG_TILEMAP_BYTES_PER_ENTRY(_bytes_per_entry) \
|
||||
MCFG_TILEMAP_INFO_CB_DRIVER(_class, _method) \
|
||||
MCFG_TILEMAP_LAYOUT_CB_DRIVER(_class, _mapper, _columns, _rows) \
|
||||
MCFG_TILEMAP_TILE_SIZE(_tilewidth, _tileheight)
|
||||
#define MCFG_TILEMAP_ADD_STANDARD_TRANSPEN(_tag, _bytes_per_entry, _class, _method, _tilewidth, _tileheight, _mapper, _columns, _rows, _transpen) \
|
||||
#define MCFG_TILEMAP_ADD_STANDARD_TRANSPEN(_tag, _gfxtag, _bytes_per_entry, _class, _method, _tilewidth, _tileheight, _mapper, _columns, _rows, _transpen) \
|
||||
MCFG_TILEMAP_ADD(_tag) \
|
||||
MCFG_TILEMAP_GFXDECODE(_gfxtag) \
|
||||
MCFG_TILEMAP_BYTES_PER_ENTRY(_bytes_per_entry) \
|
||||
MCFG_TILEMAP_INFO_CB_DRIVER(_class, _method) \
|
||||
MCFG_TILEMAP_LAYOUT_STANDARD(_mapper, _columns, _rows) \
|
||||
MCFG_TILEMAP_TILE_SIZE(_tilewidth, _tileheight) \
|
||||
MCFG_TILEMAP_TRANSPARENT_PEN(_transpen)
|
||||
#define MCFG_TILEMAP_ADD_CUSTOM_TRANSPEN(_tag, _bytes_per_entry, _class, _method, _tilewidth, _tileheight, _mapper, _columns, _rows, _transpen) \
|
||||
#define MCFG_TILEMAP_ADD_CUSTOM_TRANSPEN(_tag, _gfxtag, _bytes_per_entry, _class, _method, _tilewidth, _tileheight, _mapper, _columns, _rows, _transpen) \
|
||||
MCFG_TILEMAP_ADD(_tag) \
|
||||
MCFG_TILEMAP_GFXDECODE(_gfxtag) \
|
||||
MCFG_TILEMAP_BYTES_PER_ENTRY(_bytes_per_entry) \
|
||||
MCFG_TILEMAP_INFO_CB_DRIVER(_class, _method) \
|
||||
MCFG_TILEMAP_LAYOUT_CB_DRIVER(_columns, _mapper, _rows, _class) \
|
||||
@ -423,6 +429,7 @@ typedef UINT32 tilemap_memory_index;
|
||||
// tile_data is filled in by the get_tile_info callback
|
||||
struct tile_data
|
||||
{
|
||||
gfxdecode_device *decoder; // set in tilemap_t::init()
|
||||
const UINT8 * pen_data; // required
|
||||
const UINT8 * mask_data; // required
|
||||
pen_t palette_base; // defaults to 0
|
||||
@ -430,13 +437,11 @@ struct tile_data
|
||||
UINT8 group; // defaults to 0; range from 0..TILEMAP_NUM_GROUPS
|
||||
UINT8 flags; // defaults to 0; one or more of TILE_* flags above
|
||||
UINT8 pen_mask; // defaults to 0xff; mask to apply to pen_data while rendering the tile
|
||||
UINT8 gfxnum; // defaults to 0xff; specify index of machine.gfx for auto-invalidation on dirty
|
||||
gfxdecode_device *decoder;
|
||||
UINT8 gfxnum; // defaults to 0xff; specify index of gfx for auto-invalidation on dirty
|
||||
|
||||
void set(gfxdecode_device &_decoder, int _gfxnum, int rawcode, int rawcolor, int _flags)
|
||||
void set(int _gfxnum, int rawcode, int rawcolor, int _flags)
|
||||
{
|
||||
decoder = &_decoder;
|
||||
gfx_element *gfx = _decoder.gfx(_gfxnum);
|
||||
gfx_element *gfx = decoder->gfx(_gfxnum);
|
||||
int code = rawcode % gfx->elements();
|
||||
pen_data = gfx->get_data(code);
|
||||
palette_base = gfx->colorbase() + gfx->granularity() * rawcolor;
|
||||
@ -480,7 +485,7 @@ protected:
|
||||
tilemap_t();
|
||||
virtual ~tilemap_t();
|
||||
|
||||
tilemap_t &init(tilemap_manager &manager, tilemap_get_info_delegate tile_get_info, tilemap_mapper_delegate mapper, int tilewidth, int tileheight, int cols, int rows);
|
||||
tilemap_t &init(tilemap_manager &manager, gfxdecode_device &decoder, tilemap_get_info_delegate tile_get_info, tilemap_mapper_delegate mapper, int tilewidth, int tileheight, int cols, int rows);
|
||||
|
||||
public:
|
||||
// getters
|
||||
@ -677,8 +682,8 @@ public:
|
||||
running_machine &machine() const { return m_machine; }
|
||||
|
||||
// tilemap creation
|
||||
tilemap_t &create(tilemap_get_info_delegate tile_get_info, tilemap_mapper_delegate mapper, int tilewidth, int tileheight, int cols, int rows, tilemap_t *allocated = NULL);
|
||||
tilemap_t &create(tilemap_get_info_delegate tile_get_info, tilemap_standard_mapper mapper, int tilewidth, int tileheight, int cols, int rows, tilemap_t *allocated = NULL);
|
||||
tilemap_t &create(gfxdecode_device &decoder, tilemap_get_info_delegate tile_get_info, tilemap_mapper_delegate mapper, int tilewidth, int tileheight, int cols, int rows, tilemap_t *allocated = NULL);
|
||||
tilemap_t &create(gfxdecode_device &decoder, tilemap_get_info_delegate tile_get_info, tilemap_standard_mapper mapper, int tilewidth, int tileheight, int cols, int rows, tilemap_t *allocated = NULL);
|
||||
|
||||
// tilemap list information
|
||||
tilemap_t *find(int index) { return m_tilemap_list.find(index); }
|
||||
@ -712,6 +717,7 @@ public:
|
||||
tilemap_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
|
||||
|
||||
// static configuration
|
||||
static void static_set_gfxdecode_tag(device_t &device, const char *tag);
|
||||
static void static_set_bytes_per_entry(device_t &device, int bpe);
|
||||
static void static_set_info_callback(device_t &device, tilemap_get_info_delegate tile_get_info);
|
||||
static void static_set_layout(device_t &device, tilemap_standard_mapper mapper, int columns, int rows);
|
||||
@ -735,6 +741,9 @@ protected:
|
||||
virtual void device_start();
|
||||
|
||||
private:
|
||||
// devices
|
||||
required_device<gfxdecode_device> m_gfxdecode;
|
||||
|
||||
// configuration state
|
||||
tilemap_get_info_delegate m_get_info;
|
||||
tilemap_standard_mapper m_standard_mapper;
|
||||
@ -765,7 +774,7 @@ private:
|
||||
#define TILEMAP_MAPPER_MEMBER(_name) tilemap_memory_index _name(UINT32 col, UINT32 row, UINT32 num_cols, UINT32 num_rows)
|
||||
|
||||
// useful macro inside of a TILE_GET_INFO callback to set tile information
|
||||
#define SET_TILE_INFO_MEMBER(DECODER,GFX,CODE,COLOR,FLAGS) tileinfo.set(DECODER, GFX, CODE, COLOR, FLAGS)
|
||||
#define SET_TILE_INFO_MEMBER(GFX,CODE,COLOR,FLAGS) tileinfo.set(GFX, CODE, COLOR, FLAGS)
|
||||
|
||||
// Macros for setting tile attributes in the TILE_GET_INFO callback:
|
||||
// TILE_FLIP_YX assumes that flipy is in bit 1 and flipx is in bit 0
|
||||
|
@ -97,12 +97,12 @@ WRITE16_MEMBER(k3_state::k3_bgram_w)
|
||||
TILE_GET_INFO_MEMBER(k3_state::get_k3_bg_tile_info)
|
||||
{
|
||||
int tileno = m_bgram[tile_index];
|
||||
SET_TILE_INFO_MEMBER(m_gfxdecode, 1, tileno, 0, 0);
|
||||
SET_TILE_INFO_MEMBER(1, tileno, 0, 0);
|
||||
}
|
||||
|
||||
void k3_state::video_start()
|
||||
{
|
||||
m_bg_tilemap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(k3_state::get_k3_bg_tile_info),this), TILEMAP_SCAN_ROWS, 16, 16, 32, 64);
|
||||
m_bg_tilemap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(k3_state::get_k3_bg_tile_info),this), TILEMAP_SCAN_ROWS, 16, 16, 32, 64);
|
||||
}
|
||||
|
||||
void k3_state::draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect)
|
||||
|
@ -103,8 +103,7 @@ protected:
|
||||
TILE_GET_INFO_MEMBER(_3x3puzzle_state::get_tile1_info)
|
||||
{
|
||||
UINT16 code = m_videoram1_buffer[tile_index];
|
||||
SET_TILE_INFO_MEMBER(m_gfxdecode,
|
||||
0,
|
||||
SET_TILE_INFO_MEMBER(0,
|
||||
code,
|
||||
0,
|
||||
0);
|
||||
@ -113,8 +112,7 @@ TILE_GET_INFO_MEMBER(_3x3puzzle_state::get_tile1_info)
|
||||
TILE_GET_INFO_MEMBER(_3x3puzzle_state::get_tile2_info)
|
||||
{
|
||||
UINT16 code = m_videoram2_buffer[tile_index];
|
||||
SET_TILE_INFO_MEMBER(m_gfxdecode,
|
||||
1,
|
||||
SET_TILE_INFO_MEMBER(1,
|
||||
code,
|
||||
1,
|
||||
0);
|
||||
@ -123,8 +121,7 @@ TILE_GET_INFO_MEMBER(_3x3puzzle_state::get_tile2_info)
|
||||
TILE_GET_INFO_MEMBER(_3x3puzzle_state::get_tile3_info)
|
||||
{
|
||||
UINT16 code = m_videoram3_buffer[tile_index];
|
||||
SET_TILE_INFO_MEMBER(m_gfxdecode,
|
||||
2,
|
||||
SET_TILE_INFO_MEMBER(2,
|
||||
code,
|
||||
2,
|
||||
0);
|
||||
@ -172,9 +169,9 @@ WRITE16_MEMBER(_3x3puzzle_state::tilemap1_scrolly_w)
|
||||
|
||||
void _3x3puzzle_state::video_start()
|
||||
{
|
||||
m_tilemap1 = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(_3x3puzzle_state::get_tile1_info),this), TILEMAP_SCAN_ROWS, 16, 16, 32, 32);
|
||||
m_tilemap2 = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(_3x3puzzle_state::get_tile2_info),this), TILEMAP_SCAN_ROWS, 8, 8, 64, 32);
|
||||
m_tilemap3 = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(_3x3puzzle_state::get_tile3_info),this), TILEMAP_SCAN_ROWS, 8, 8, 64, 32);
|
||||
m_tilemap1 = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(_3x3puzzle_state::get_tile1_info),this), TILEMAP_SCAN_ROWS, 16, 16, 32, 32);
|
||||
m_tilemap2 = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(_3x3puzzle_state::get_tile2_info),this), TILEMAP_SCAN_ROWS, 8, 8, 64, 32);
|
||||
m_tilemap3 = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(_3x3puzzle_state::get_tile3_info),this), TILEMAP_SCAN_ROWS, 8, 8, 64, 32);
|
||||
m_tilemap2->set_transparent_pen(0);
|
||||
m_tilemap3->set_transparent_pen(0);
|
||||
}
|
||||
|
@ -538,13 +538,13 @@ TILE_GET_INFO_MEMBER(_5clown_state::get_fclown_tile_info)
|
||||
int bank = (attr & 0x02) >> 1; /* bit 1 switch the gfx banks */
|
||||
int color = (attr & 0x3c) >> 2 | ((attr & 0x80) >> 3); /* bits 2-3-4-5-7 for color */
|
||||
|
||||
SET_TILE_INFO_MEMBER(m_gfxdecode, bank, code, color, 0);
|
||||
SET_TILE_INFO_MEMBER(bank, code, color, 0);
|
||||
}
|
||||
|
||||
|
||||
void _5clown_state::video_start()
|
||||
{
|
||||
m_bg_tilemap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(_5clown_state::get_fclown_tile_info),this), TILEMAP_SCAN_ROWS, 8, 8, 32, 32);
|
||||
m_bg_tilemap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(_5clown_state::get_fclown_tile_info),this), TILEMAP_SCAN_ROWS, 8, 8, 32, 32);
|
||||
}
|
||||
|
||||
|
||||
|
@ -121,8 +121,7 @@ TILEMAP_MAPPER_MEMBER(acommand_state::bg_scan)
|
||||
TILE_GET_INFO_MEMBER(acommand_state::ac_get_bg_tile_info)
|
||||
{
|
||||
int code = m_ac_bgvram[tile_index];
|
||||
SET_TILE_INFO_MEMBER(m_gfxdecode,
|
||||
1,
|
||||
SET_TILE_INFO_MEMBER(1,
|
||||
code & 0xfff,
|
||||
(code & 0xf000) >> 12,
|
||||
0);
|
||||
@ -131,8 +130,7 @@ TILE_GET_INFO_MEMBER(acommand_state::ac_get_bg_tile_info)
|
||||
TILE_GET_INFO_MEMBER(acommand_state::ac_get_tx_tile_info)
|
||||
{
|
||||
int code = m_ac_txvram[tile_index];
|
||||
SET_TILE_INFO_MEMBER(m_gfxdecode,
|
||||
0,
|
||||
SET_TILE_INFO_MEMBER(0,
|
||||
code & 0xfff,
|
||||
(code & 0xf000) >> 12,
|
||||
0);
|
||||
@ -198,8 +196,8 @@ void acommand_state::draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprec
|
||||
|
||||
void acommand_state::video_start()
|
||||
{
|
||||
m_tx_tilemap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(acommand_state::ac_get_tx_tile_info),this),TILEMAP_SCAN_COLS,8,8,512,32);
|
||||
m_bg_tilemap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(acommand_state::ac_get_bg_tile_info),this),tilemap_mapper_delegate(FUNC(acommand_state::bg_scan),this),16,16,256,16);
|
||||
m_tx_tilemap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(acommand_state::ac_get_tx_tile_info),this),TILEMAP_SCAN_COLS,8,8,512,32);
|
||||
m_bg_tilemap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(acommand_state::ac_get_bg_tile_info),this),tilemap_mapper_delegate(FUNC(acommand_state::bg_scan),this),16,16,256,16);
|
||||
|
||||
m_ac_vregs = auto_alloc_array(machine(), UINT16, 0x80/2);
|
||||
|
||||
|
@ -88,8 +88,7 @@ TILE_GET_INFO_MEMBER(albazg_state::y_get_bg_tile_info)
|
||||
int code = m_videoram[tile_index];
|
||||
int color = m_colorram[tile_index];
|
||||
|
||||
SET_TILE_INFO_MEMBER(m_gfxdecode,
|
||||
0,
|
||||
SET_TILE_INFO_MEMBER(0,
|
||||
code + ((color & 0xf8) << 3),
|
||||
color & 0x7,
|
||||
0);
|
||||
@ -98,7 +97,7 @@ TILE_GET_INFO_MEMBER(albazg_state::y_get_bg_tile_info)
|
||||
|
||||
void albazg_state::video_start()
|
||||
{
|
||||
m_bg_tilemap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(albazg_state::y_get_bg_tile_info),this), TILEMAP_SCAN_ROWS, 8, 8, 32, 32);
|
||||
m_bg_tilemap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(albazg_state::y_get_bg_tile_info),this), TILEMAP_SCAN_ROWS, 8, 8, 32, 32);
|
||||
}
|
||||
|
||||
UINT32 albazg_state::screen_update_yumefuda(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect)
|
||||
|
@ -438,8 +438,8 @@ static MACHINE_CONFIG_START( atarig1, atarig1_state )
|
||||
MCFG_PALETTE_ADD("palette", 1280)
|
||||
|
||||
/* initialize the playfield */
|
||||
MCFG_TILEMAP_ADD_STANDARD("playfield", 2, atarig1_state, get_playfield_tile_info, 8,8, SCAN_ROWS, 64,64)
|
||||
MCFG_TILEMAP_ADD_STANDARD_TRANSPEN("alpha", 2, atarig1_state, get_alpha_tile_info, 8,8, SCAN_ROWS, 64,32, 0)
|
||||
MCFG_TILEMAP_ADD_STANDARD("playfield", "gfxdecode", 2, atarig1_state, get_playfield_tile_info, 8,8, SCAN_ROWS, 64,64)
|
||||
MCFG_TILEMAP_ADD_STANDARD_TRANSPEN("alpha", "gfxdecode", 2, atarig1_state, get_alpha_tile_info, 8,8, SCAN_ROWS, 64,32, 0)
|
||||
|
||||
MCFG_SCREEN_ADD("screen", RASTER)
|
||||
MCFG_SCREEN_VIDEO_ATTRIBUTES(VIDEO_UPDATE_BEFORE_VBLANK)
|
||||
|
@ -547,8 +547,8 @@ static MACHINE_CONFIG_START( atarig42, atarig42_state )
|
||||
MCFG_GFXDECODE_ADD("gfxdecode", atarig42)
|
||||
MCFG_PALETTE_ADD("palette", 2048)
|
||||
|
||||
MCFG_TILEMAP_ADD_CUSTOM("playfield", 2, atarig42_state, get_playfield_tile_info, 8,8, atarig42_playfield_scan, 128,64)
|
||||
MCFG_TILEMAP_ADD_STANDARD_TRANSPEN("alpha", 2, atarig42_state, get_alpha_tile_info, 8,8, SCAN_ROWS, 64,32, 0)
|
||||
MCFG_TILEMAP_ADD_CUSTOM("playfield", "gfxdecode", 2, atarig42_state, get_playfield_tile_info, 8,8, atarig42_playfield_scan, 128,64)
|
||||
MCFG_TILEMAP_ADD_STANDARD_TRANSPEN("alpha", "gfxdecode", 2, atarig42_state, get_alpha_tile_info, 8,8, SCAN_ROWS, 64,32, 0)
|
||||
|
||||
MCFG_SCREEN_ADD("screen", RASTER)
|
||||
MCFG_SCREEN_VIDEO_ATTRIBUTES(VIDEO_UPDATE_BEFORE_VBLANK)
|
||||
|
@ -833,8 +833,8 @@ static MACHINE_CONFIG_START( atarigt, atarigt_state )
|
||||
MCFG_GFXDECODE_ADD("gfxdecode", atarigt)
|
||||
MCFG_PALETTE_ADD("palette", 32768)
|
||||
|
||||
MCFG_TILEMAP_ADD_CUSTOM("playfield", 2, atarigt_state, get_playfield_tile_info, 8,8, atarigt_playfield_scan, 128,64)
|
||||
MCFG_TILEMAP_ADD_STANDARD("alpha", 2, atarigt_state, get_alpha_tile_info, 8,8, SCAN_ROWS, 64, 32)
|
||||
MCFG_TILEMAP_ADD_CUSTOM("playfield", "gfxdecode", 2, atarigt_state, get_playfield_tile_info, 8,8, atarigt_playfield_scan, 128,64)
|
||||
MCFG_TILEMAP_ADD_STANDARD("alpha", "gfxdecode", 2, atarigt_state, get_alpha_tile_info, 8,8, SCAN_ROWS, 64, 32)
|
||||
|
||||
MCFG_SCREEN_ADD("screen", RASTER)
|
||||
MCFG_SCREEN_VIDEO_ATTRIBUTES(VIDEO_UPDATE_BEFORE_VBLANK)
|
||||
|
@ -1465,8 +1465,8 @@ static MACHINE_CONFIG_START( atarigx2, atarigx2_state )
|
||||
MCFG_GFXDECODE_ADD("gfxdecode", atarigx2)
|
||||
MCFG_PALETTE_ADD("palette", 2048)
|
||||
|
||||
MCFG_TILEMAP_ADD_CUSTOM("playfield", 2, atarigx2_state, get_playfield_tile_info, 8,8, atarigx2_playfield_scan, 128,64)
|
||||
MCFG_TILEMAP_ADD_STANDARD_TRANSPEN("alpha", 2, atarigx2_state, get_alpha_tile_info, 8,8, SCAN_ROWS, 64,32, 0)
|
||||
MCFG_TILEMAP_ADD_CUSTOM("playfield", "gfxdecode", 2, atarigx2_state, get_playfield_tile_info, 8,8, atarigx2_playfield_scan, 128,64)
|
||||
MCFG_TILEMAP_ADD_STANDARD_TRANSPEN("alpha", "gfxdecode", 2, atarigx2_state, get_alpha_tile_info, 8,8, SCAN_ROWS, 64,32, 0)
|
||||
|
||||
MCFG_SCREEN_ADD("screen", RASTER)
|
||||
MCFG_SCREEN_VIDEO_ATTRIBUTES(VIDEO_UPDATE_BEFORE_VBLANK)
|
||||
|
@ -732,8 +732,8 @@ static MACHINE_CONFIG_START( atarisy1, atarisy1_state )
|
||||
MCFG_PALETTE_ADD("palette", 1024)
|
||||
MCFG_PALETTE_FORMAT(IIIIRRRRGGGGBBBB)
|
||||
|
||||
MCFG_TILEMAP_ADD_STANDARD("playfield", 2, atarisy1_state, get_playfield_tile_info, 8,8, SCAN_ROWS, 64,64)
|
||||
MCFG_TILEMAP_ADD_STANDARD_TRANSPEN("alpha", 2, atarisy1_state, get_alpha_tile_info, 8,8, SCAN_ROWS, 64,32, 0)
|
||||
MCFG_TILEMAP_ADD_STANDARD("playfield", "gfxdecode", 2, atarisy1_state, get_playfield_tile_info, 8,8, SCAN_ROWS, 64,64)
|
||||
MCFG_TILEMAP_ADD_STANDARD_TRANSPEN("alpha", "gfxdecode", 2, atarisy1_state, get_alpha_tile_info, 8,8, SCAN_ROWS, 64,32, 0)
|
||||
|
||||
MCFG_ATARI_MOTION_OBJECTS_ADD("mob", "screen", atarisy1_state::s_mob_config)
|
||||
MCFG_ATARI_MOTION_OBJECTS_GFXDECODE("gfxdecode")
|
||||
|
@ -1238,8 +1238,8 @@ static MACHINE_CONFIG_START( atarisy2, atarisy2_state )
|
||||
MCFG_GFXDECODE_ADD("gfxdecode", atarisy2)
|
||||
MCFG_PALETTE_ADD("palette", 256)
|
||||
|
||||
MCFG_TILEMAP_ADD_STANDARD("playfield", 2, atarisy2_state, get_playfield_tile_info, 8,8, SCAN_ROWS, 128,64)
|
||||
MCFG_TILEMAP_ADD_STANDARD_TRANSPEN("alpha", 2, atarisy2_state, get_alpha_tile_info, 8,8, SCAN_ROWS, 64,48, 0)
|
||||
MCFG_TILEMAP_ADD_STANDARD("playfield", "gfxdecode", 2, atarisy2_state, get_playfield_tile_info, 8,8, SCAN_ROWS, 128,64)
|
||||
MCFG_TILEMAP_ADD_STANDARD_TRANSPEN("alpha", "gfxdecode", 2, atarisy2_state, get_alpha_tile_info, 8,8, SCAN_ROWS, 64,48, 0)
|
||||
|
||||
MCFG_ATARI_MOTION_OBJECTS_ADD("mob", "screen", atarisy2_state::s_mob_config)
|
||||
MCFG_ATARI_MOTION_OBJECTS_GFXDECODE("gfxdecode")
|
||||
|
@ -500,13 +500,13 @@ TILE_GET_INFO_MEMBER(avt_state::get_bg_tile_info)
|
||||
int code = m_videoram[tile_index] | ((attr & 1) << 8);
|
||||
int color = (attr & 0xf0)>>4;
|
||||
|
||||
SET_TILE_INFO_MEMBER(m_gfxdecode, 0, code, color, 0);
|
||||
SET_TILE_INFO_MEMBER(0, code, color, 0);
|
||||
}
|
||||
|
||||
|
||||
void avt_state::video_start()
|
||||
{
|
||||
m_bg_tilemap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(avt_state::get_bg_tile_info),this), TILEMAP_SCAN_ROWS, 8, 8, 28, 32);
|
||||
m_bg_tilemap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(avt_state::get_bg_tile_info),this), TILEMAP_SCAN_ROWS, 8, 8, 28, 32);
|
||||
}
|
||||
|
||||
|
||||
|
@ -512,7 +512,7 @@ static MACHINE_CONFIG_START( badlands, badlands_state )
|
||||
MCFG_GFXDECODE_ADD("gfxdecode", badlands)
|
||||
MCFG_PALETTE_ADD("palette", 256)
|
||||
|
||||
MCFG_TILEMAP_ADD_STANDARD("playfield", 2, badlands_state, get_playfield_tile_info, 8,8, SCAN_ROWS, 64,32)
|
||||
MCFG_TILEMAP_ADD_STANDARD("playfield", "gfxdecode", 2, badlands_state, get_playfield_tile_info, 8,8, SCAN_ROWS, 64,32)
|
||||
MCFG_ATARI_MOTION_OBJECTS_ADD("mob", "screen", badlands_state::s_mob_config)
|
||||
MCFG_ATARI_MOTION_OBJECTS_GFXDECODE("gfxdecode")
|
||||
|
||||
@ -715,7 +715,7 @@ static MACHINE_CONFIG_START( badlandsb, badlands_state )
|
||||
MCFG_GFXDECODE_ADD("gfxdecode", badlandsb)
|
||||
MCFG_PALETTE_ADD("palette", 256)
|
||||
|
||||
MCFG_TILEMAP_ADD_STANDARD("playfield", 2, badlands_state, get_playfield_tile_info, 8,8, SCAN_ROWS, 64,32)
|
||||
MCFG_TILEMAP_ADD_STANDARD("playfield", "gfxdecode", 2, badlands_state, get_playfield_tile_info, 8,8, SCAN_ROWS, 64,32)
|
||||
MCFG_ATARI_MOTION_OBJECTS_ADD("mob", "screen", badlands_state::s_mob_config)
|
||||
MCFG_ATARI_MOTION_OBJECTS_GFXDECODE("gfxdecode")
|
||||
|
||||
|
@ -210,9 +210,9 @@ static MACHINE_CONFIG_START( batman, batman_state )
|
||||
MCFG_PALETTE_ADD("palette", 2048)
|
||||
|
||||
MCFG_ATARI_VAD_ADD("vad", "screen", WRITELINE(atarigen_state, scanline_int_write_line))
|
||||
MCFG_ATARI_VAD_PLAYFIELD(batman_state, get_playfield_tile_info)
|
||||
MCFG_ATARI_VAD_PLAYFIELD2(batman_state, get_playfield2_tile_info)
|
||||
MCFG_ATARI_VAD_ALPHA(batman_state, get_alpha_tile_info)
|
||||
MCFG_ATARI_VAD_PLAYFIELD(batman_state, "gfxdecode", get_playfield_tile_info)
|
||||
MCFG_ATARI_VAD_PLAYFIELD2(batman_state, "gfxdecode", get_playfield2_tile_info)
|
||||
MCFG_ATARI_VAD_ALPHA(batman_state, "gfxdecode", get_alpha_tile_info)
|
||||
MCFG_ATARI_VAD_MOB(batman_state::s_mob_config, "gfxdecode")
|
||||
|
||||
MCFG_SCREEN_ADD("screen", RASTER)
|
||||
|
@ -74,8 +74,7 @@ TILE_GET_INFO_MEMBER(bestleag_state::get_tx_tile_info)
|
||||
{
|
||||
int code = m_txram[tile_index];
|
||||
|
||||
SET_TILE_INFO_MEMBER(m_gfxdecode,
|
||||
0,
|
||||
SET_TILE_INFO_MEMBER(0,
|
||||
(code & 0x0fff)|0x8000,
|
||||
(code & 0xf000) >> 12,
|
||||
0);
|
||||
@ -85,8 +84,7 @@ TILE_GET_INFO_MEMBER(bestleag_state::get_bg_tile_info)
|
||||
{
|
||||
int code = m_bgram[tile_index];
|
||||
|
||||
SET_TILE_INFO_MEMBER(m_gfxdecode,
|
||||
1,
|
||||
SET_TILE_INFO_MEMBER(1,
|
||||
(code & 0x0fff),
|
||||
(code & 0xf000) >> 12,
|
||||
0);
|
||||
@ -96,8 +94,7 @@ TILE_GET_INFO_MEMBER(bestleag_state::get_fg_tile_info)
|
||||
{
|
||||
int code = m_fgram[tile_index];
|
||||
|
||||
SET_TILE_INFO_MEMBER(m_gfxdecode,
|
||||
1,
|
||||
SET_TILE_INFO_MEMBER(1,
|
||||
(code & 0x0fff)|0x1000,
|
||||
((code & 0xf000) >> 12)|0x10,
|
||||
0);
|
||||
@ -116,9 +113,9 @@ TILEMAP_MAPPER_MEMBER(bestleag_state::bsb_bg_scan)
|
||||
|
||||
void bestleag_state::video_start()
|
||||
{
|
||||
m_tx_tilemap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(bestleag_state::get_tx_tile_info),this),TILEMAP_SCAN_COLS,8,8,256, 32);
|
||||
m_bg_tilemap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(bestleag_state::get_bg_tile_info),this),tilemap_mapper_delegate(FUNC(bestleag_state::bsb_bg_scan),this),16,16,128, 64);
|
||||
m_fg_tilemap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(bestleag_state::get_fg_tile_info),this),tilemap_mapper_delegate(FUNC(bestleag_state::bsb_bg_scan),this),16,16,128, 64);
|
||||
m_tx_tilemap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(bestleag_state::get_tx_tile_info),this),TILEMAP_SCAN_COLS,8,8,256, 32);
|
||||
m_bg_tilemap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(bestleag_state::get_bg_tile_info),this),tilemap_mapper_delegate(FUNC(bestleag_state::bsb_bg_scan),this),16,16,128, 64);
|
||||
m_fg_tilemap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(bestleag_state::get_fg_tile_info),this),tilemap_mapper_delegate(FUNC(bestleag_state::bsb_bg_scan),this),16,16,128, 64);
|
||||
|
||||
m_tx_tilemap->set_transparent_pen(15);
|
||||
m_fg_tilemap->set_transparent_pen(15);
|
||||
|
@ -165,7 +165,7 @@ public:
|
||||
int flipyx = (ram[tile_index*2+1] & 0xc000)>>14; \
|
||||
int col = (ram[tile_index*2] & 0x00ff); \
|
||||
if (rgn==1) col >>=4; \
|
||||
SET_TILE_INFO_MEMBER(m_gfxdecode, 1-rgn, tileno, col, TILE_FLIPYX(flipyx));
|
||||
SET_TILE_INFO_MEMBER(1-rgn, tileno, col, TILE_FLIPYX(flipyx));
|
||||
|
||||
TILE_GET_INFO_MEMBER(blackt96_state::get_bg0_tile_info){ GET_INFO(m_spriteram0); }
|
||||
TILE_GET_INFO_MEMBER(blackt96_state::get_bg1_tile_info){ GET_INFO(m_spriteram1); }
|
||||
@ -187,14 +187,14 @@ WRITE16_MEMBER(blackt96_state::bg_videoram7_w) { COMBINE_DATA(&m_spriteram7[offs
|
||||
|
||||
void blackt96_state::video_start()
|
||||
{
|
||||
m_bg_tilemap[0] = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(blackt96_state::get_bg0_tile_info),this), TILEMAP_SCAN_COLS, 16, 16, 32, 32);
|
||||
m_bg_tilemap[1] = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(blackt96_state::get_bg1_tile_info),this), TILEMAP_SCAN_COLS, 16, 16, 32, 32);
|
||||
m_bg_tilemap[2] = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(blackt96_state::get_bg2_tile_info),this), TILEMAP_SCAN_COLS, 16, 16, 32, 32);
|
||||
m_bg_tilemap[3] = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(blackt96_state::get_bg3_tile_info),this), TILEMAP_SCAN_COLS, 16, 16, 32, 32);
|
||||
m_bg_tilemap[4] = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(blackt96_state::get_bg4_tile_info),this), TILEMAP_SCAN_COLS, 16, 16, 32, 32);
|
||||
m_bg_tilemap[5] = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(blackt96_state::get_bg5_tile_info),this), TILEMAP_SCAN_COLS, 16, 16, 32, 32);
|
||||
m_bg_tilemap[6] = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(blackt96_state::get_bg6_tile_info),this), TILEMAP_SCAN_COLS, 16, 16, 32, 32);
|
||||
m_bg_tilemap[7] = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(blackt96_state::get_bg7_tile_info),this), TILEMAP_SCAN_COLS, 16, 16, 32, 32);
|
||||
m_bg_tilemap[0] = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(blackt96_state::get_bg0_tile_info),this), TILEMAP_SCAN_COLS, 16, 16, 32, 32);
|
||||
m_bg_tilemap[1] = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(blackt96_state::get_bg1_tile_info),this), TILEMAP_SCAN_COLS, 16, 16, 32, 32);
|
||||
m_bg_tilemap[2] = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(blackt96_state::get_bg2_tile_info),this), TILEMAP_SCAN_COLS, 16, 16, 32, 32);
|
||||
m_bg_tilemap[3] = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(blackt96_state::get_bg3_tile_info),this), TILEMAP_SCAN_COLS, 16, 16, 32, 32);
|
||||
m_bg_tilemap[4] = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(blackt96_state::get_bg4_tile_info),this), TILEMAP_SCAN_COLS, 16, 16, 32, 32);
|
||||
m_bg_tilemap[5] = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(blackt96_state::get_bg5_tile_info),this), TILEMAP_SCAN_COLS, 16, 16, 32, 32);
|
||||
m_bg_tilemap[6] = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(blackt96_state::get_bg6_tile_info),this), TILEMAP_SCAN_COLS, 16, 16, 32, 32);
|
||||
m_bg_tilemap[7] = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(blackt96_state::get_bg7_tile_info),this), TILEMAP_SCAN_COLS, 16, 16, 32, 32);
|
||||
|
||||
m_spriteram[0] = m_spriteram0;
|
||||
m_spriteram[1] = m_spriteram1;
|
||||
|
@ -355,13 +355,13 @@ TILE_GET_INFO_MEMBER(blitz_state::get_bg_tile_info)
|
||||
int bank = (attr & 0x02) >> 1; /* bit 1 switch the gfx banks */
|
||||
int color = (attr & 0x3c) >> 2; /* bits 2-3-4-5 for color */
|
||||
|
||||
SET_TILE_INFO_MEMBER(m_gfxdecode, bank, code, color, 0);
|
||||
SET_TILE_INFO_MEMBER(bank, code, color, 0);
|
||||
}
|
||||
|
||||
|
||||
void blitz_state::video_start()
|
||||
{
|
||||
m_bg_tilemap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(blitz_state::get_bg_tile_info),this), TILEMAP_SCAN_ROWS, 8, 8, 32, 32);
|
||||
m_bg_tilemap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(blitz_state::get_bg_tile_info),this), TILEMAP_SCAN_ROWS, 8, 8, 32, 32);
|
||||
}
|
||||
|
||||
UINT32 blitz_state::screen_update_megadpkr(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect)
|
||||
|
@ -187,7 +187,7 @@ static MACHINE_CONFIG_START( blstroid, blstroid_state )
|
||||
MCFG_PALETTE_ADD("palette", 512)
|
||||
MCFG_PALETTE_FORMAT(xRRRRRGGGGGBBBBB)
|
||||
|
||||
MCFG_TILEMAP_ADD_STANDARD("playfield", 2, blstroid_state, get_playfield_tile_info, 16,8, SCAN_ROWS, 64,64)
|
||||
MCFG_TILEMAP_ADD_STANDARD("playfield", "gfxdecode", 2, blstroid_state, get_playfield_tile_info, 16,8, SCAN_ROWS, 64,64)
|
||||
MCFG_ATARI_MOTION_OBJECTS_ADD("mob", "screen", blstroid_state::s_mob_config)
|
||||
MCFG_ATARI_MOTION_OBJECTS_GFXDECODE("gfxdecode")
|
||||
|
||||
|
@ -166,7 +166,7 @@ TILE_GET_INFO_MEMBER(bnstars_state::get_ms32_tx0_tile_info)
|
||||
tileno = m_ms32_tx0_ram[tile_index *2+0] & 0x0000ffff;
|
||||
colour = m_ms32_tx0_ram[tile_index *2+1] & 0x0000000f;
|
||||
|
||||
SET_TILE_INFO_MEMBER(m_gfxdecode, 3,tileno,colour,0);
|
||||
SET_TILE_INFO_MEMBER(3,tileno,colour,0);
|
||||
}
|
||||
|
||||
TILE_GET_INFO_MEMBER(bnstars_state::get_ms32_tx1_tile_info)
|
||||
@ -176,7 +176,7 @@ TILE_GET_INFO_MEMBER(bnstars_state::get_ms32_tx1_tile_info)
|
||||
tileno = m_ms32_tx1_ram[tile_index *2+0] & 0x0000ffff;
|
||||
colour = m_ms32_tx1_ram[tile_index *2+1] & 0x0000000f;
|
||||
|
||||
SET_TILE_INFO_MEMBER(m_gfxdecode, 7,tileno,colour,0);
|
||||
SET_TILE_INFO_MEMBER(7,tileno,colour,0);
|
||||
}
|
||||
|
||||
WRITE32_MEMBER(bnstars_state::ms32_tx0_ram_w)
|
||||
@ -200,7 +200,7 @@ TILE_GET_INFO_MEMBER(bnstars_state::get_ms32_bg0_tile_info)
|
||||
tileno = m_ms32_bg0_ram[tile_index *2+0] & 0x0000ffff;
|
||||
colour = m_ms32_bg0_ram[tile_index *2+1] & 0x0000000f;
|
||||
|
||||
SET_TILE_INFO_MEMBER(m_gfxdecode, 2,tileno,colour,0);
|
||||
SET_TILE_INFO_MEMBER(2,tileno,colour,0);
|
||||
}
|
||||
|
||||
TILE_GET_INFO_MEMBER(bnstars_state::get_ms32_bg1_tile_info)
|
||||
@ -210,7 +210,7 @@ TILE_GET_INFO_MEMBER(bnstars_state::get_ms32_bg1_tile_info)
|
||||
tileno = m_ms32_bg1_ram[tile_index *2+0] & 0x0000ffff;
|
||||
colour = m_ms32_bg1_ram[tile_index *2+1] & 0x0000000f;
|
||||
|
||||
SET_TILE_INFO_MEMBER(m_gfxdecode, 6,tileno,colour,0);
|
||||
SET_TILE_INFO_MEMBER(6,tileno,colour,0);
|
||||
}
|
||||
|
||||
WRITE32_MEMBER(bnstars_state::ms32_bg0_ram_w)
|
||||
@ -319,7 +319,7 @@ TILE_GET_INFO_MEMBER(bnstars_state::get_ms32_roz0_tile_info)
|
||||
tileno = m_ms32_roz0_ram[tile_index *2+0] & 0x0000ffff;
|
||||
colour = m_ms32_roz0_ram[tile_index *2+1] & 0x0000000f;
|
||||
|
||||
SET_TILE_INFO_MEMBER(m_gfxdecode, 1,tileno,colour,0);
|
||||
SET_TILE_INFO_MEMBER(1,tileno,colour,0);
|
||||
}
|
||||
|
||||
TILE_GET_INFO_MEMBER(bnstars_state::get_ms32_roz1_tile_info)
|
||||
@ -329,7 +329,7 @@ TILE_GET_INFO_MEMBER(bnstars_state::get_ms32_roz1_tile_info)
|
||||
tileno = m_ms32_roz1_ram[tile_index *2+0] & 0x0000ffff;
|
||||
colour = m_ms32_roz1_ram[tile_index *2+1] & 0x0000000f;
|
||||
|
||||
SET_TILE_INFO_MEMBER(m_gfxdecode, 5,tileno,colour,0);
|
||||
SET_TILE_INFO_MEMBER(5,tileno,colour,0);
|
||||
}
|
||||
|
||||
WRITE32_MEMBER(bnstars_state::ms32_roz0_ram_w)
|
||||
@ -498,18 +498,18 @@ void bnstars_state::draw_sprites(screen_device &screen, bitmap_ind16 &bitmap, co
|
||||
|
||||
void bnstars_state::video_start()
|
||||
{
|
||||
m_ms32_tx_tilemap[0] = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(bnstars_state::get_ms32_tx0_tile_info),this),TILEMAP_SCAN_ROWS, 8, 8,64,64);
|
||||
m_ms32_tx_tilemap[1] = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(bnstars_state::get_ms32_tx1_tile_info),this),TILEMAP_SCAN_ROWS, 8, 8,64,64);
|
||||
m_ms32_tx_tilemap[0] = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(bnstars_state::get_ms32_tx0_tile_info),this),TILEMAP_SCAN_ROWS, 8, 8,64,64);
|
||||
m_ms32_tx_tilemap[1] = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(bnstars_state::get_ms32_tx1_tile_info),this),TILEMAP_SCAN_ROWS, 8, 8,64,64);
|
||||
m_ms32_tx_tilemap[0]->set_transparent_pen(0);
|
||||
m_ms32_tx_tilemap[1]->set_transparent_pen(0);
|
||||
|
||||
m_ms32_bg_tilemap[0] = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(bnstars_state::get_ms32_bg0_tile_info),this),TILEMAP_SCAN_ROWS,16,16,64,64);
|
||||
m_ms32_bg_tilemap[1] = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(bnstars_state::get_ms32_bg1_tile_info),this),TILEMAP_SCAN_ROWS,16,16,64,64);
|
||||
m_ms32_bg_tilemap[0] = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(bnstars_state::get_ms32_bg0_tile_info),this),TILEMAP_SCAN_ROWS,16,16,64,64);
|
||||
m_ms32_bg_tilemap[1] = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(bnstars_state::get_ms32_bg1_tile_info),this),TILEMAP_SCAN_ROWS,16,16,64,64);
|
||||
m_ms32_bg_tilemap[0]->set_transparent_pen(0);
|
||||
m_ms32_bg_tilemap[1]->set_transparent_pen(0);
|
||||
|
||||
m_ms32_roz_tilemap[0] = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(bnstars_state::get_ms32_roz0_tile_info),this),TILEMAP_SCAN_ROWS,16,16,128,128);
|
||||
m_ms32_roz_tilemap[1] = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(bnstars_state::get_ms32_roz1_tile_info),this),TILEMAP_SCAN_ROWS,16,16,128,128);
|
||||
m_ms32_roz_tilemap[0] = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(bnstars_state::get_ms32_roz0_tile_info),this),TILEMAP_SCAN_ROWS,16,16,128,128);
|
||||
m_ms32_roz_tilemap[1] = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(bnstars_state::get_ms32_roz1_tile_info),this),TILEMAP_SCAN_ROWS,16,16,128,128);
|
||||
m_ms32_roz_tilemap[0]->set_transparent_pen(0);
|
||||
m_ms32_roz_tilemap[1]->set_transparent_pen(0);
|
||||
|
||||
|
@ -89,14 +89,14 @@ WRITE8_MEMBER(cabaret_state::bg_tile_w)
|
||||
TILE_GET_INFO_MEMBER(cabaret_state::get_bg_tile_info)
|
||||
{
|
||||
int code = m_bg_tile_ram[tile_index];
|
||||
SET_TILE_INFO_MEMBER(m_gfxdecode, 1, code & 0xff, 0, 0);
|
||||
SET_TILE_INFO_MEMBER(1, code & 0xff, 0, 0);
|
||||
}
|
||||
|
||||
TILE_GET_INFO_MEMBER(cabaret_state::get_fg_tile_info)
|
||||
{
|
||||
int code = m_fg_tile_ram[tile_index] | (m_fg_color_ram[tile_index] << 8);
|
||||
int tile = code & 0x1fff;
|
||||
SET_TILE_INFO_MEMBER(m_gfxdecode, 0, code, tile != 0x1fff ? ((code >> 12) & 0xe) + 1 : 0, 0);
|
||||
SET_TILE_INFO_MEMBER(0, code, tile != 0x1fff ? ((code >> 12) & 0xe) + 1 : 0, 0);
|
||||
}
|
||||
|
||||
WRITE8_MEMBER(cabaret_state::fg_tile_w)
|
||||
@ -113,8 +113,8 @@ WRITE8_MEMBER(cabaret_state::fg_color_w)
|
||||
|
||||
void cabaret_state::video_start()
|
||||
{
|
||||
m_bg_tilemap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(cabaret_state::get_bg_tile_info),this), TILEMAP_SCAN_ROWS, 8, 32, 64, 8);
|
||||
m_fg_tilemap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(cabaret_state::get_fg_tile_info),this), TILEMAP_SCAN_ROWS, 8, 8, 64, 32);
|
||||
m_bg_tilemap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(cabaret_state::get_bg_tile_info),this), TILEMAP_SCAN_ROWS, 8, 32, 64, 8);
|
||||
m_fg_tilemap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(cabaret_state::get_fg_tile_info),this), TILEMAP_SCAN_ROWS, 8, 8, 64, 32);
|
||||
m_fg_tilemap->set_transparent_pen(0);
|
||||
m_bg_tilemap->set_scroll_cols(64);
|
||||
}
|
||||
|
@ -136,7 +136,7 @@ TILE_GET_INFO_MEMBER(calorie_state::get_bg_tile_info)
|
||||
int color = src[bg_base + tile_index + 0x100] & 0x0f;
|
||||
int flag = src[bg_base + tile_index + 0x100] & 0x40 ? TILE_FLIPX : 0;
|
||||
|
||||
SET_TILE_INFO_MEMBER(m_gfxdecode, 1, code, color, flag);
|
||||
SET_TILE_INFO_MEMBER(1, code, color, flag);
|
||||
}
|
||||
|
||||
TILE_GET_INFO_MEMBER(calorie_state::get_fg_tile_info)
|
||||
@ -144,14 +144,14 @@ TILE_GET_INFO_MEMBER(calorie_state::get_fg_tile_info)
|
||||
int code = ((m_fg_ram[tile_index + 0x400] & 0x30) << 4) | m_fg_ram[tile_index];
|
||||
int color = m_fg_ram[tile_index + 0x400] & 0x0f;
|
||||
|
||||
SET_TILE_INFO_MEMBER(m_gfxdecode, 0, code, color, TILE_FLIPYX((m_fg_ram[tile_index + 0x400] & 0xc0) >> 6));
|
||||
SET_TILE_INFO_MEMBER(0, code, color, TILE_FLIPYX((m_fg_ram[tile_index + 0x400] & 0xc0) >> 6));
|
||||
}
|
||||
|
||||
|
||||
void calorie_state::video_start()
|
||||
{
|
||||
m_bg_tilemap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(calorie_state::get_bg_tile_info),this), TILEMAP_SCAN_ROWS, 16, 16, 16, 16);
|
||||
m_fg_tilemap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(calorie_state::get_fg_tile_info),this), TILEMAP_SCAN_ROWS, 8, 8, 32, 32);
|
||||
m_bg_tilemap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(calorie_state::get_bg_tile_info),this), TILEMAP_SCAN_ROWS, 16, 16, 16, 16);
|
||||
m_fg_tilemap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(calorie_state::get_fg_tile_info),this), TILEMAP_SCAN_ROWS, 8, 8, 32, 32);
|
||||
|
||||
m_fg_tilemap->set_transparent_pen(0);
|
||||
}
|
||||
|
@ -106,8 +106,7 @@ TILE_GET_INFO_MEMBER(caswin_state::get_sc0_tile_info)
|
||||
int tile = (m_sc0_vram[tile_index] | ((m_sc0_attr[tile_index] & 0x70)<<4)) & 0x7ff;
|
||||
int colour = m_sc0_attr[tile_index] & 0xf;
|
||||
|
||||
SET_TILE_INFO_MEMBER(m_gfxdecode,
|
||||
0,
|
||||
SET_TILE_INFO_MEMBER(0,
|
||||
tile,
|
||||
colour,
|
||||
0);
|
||||
@ -115,7 +114,7 @@ TILE_GET_INFO_MEMBER(caswin_state::get_sc0_tile_info)
|
||||
|
||||
void caswin_state::video_start()
|
||||
{
|
||||
m_sc0_tilemap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(caswin_state::get_sc0_tile_info),this),TILEMAP_SCAN_ROWS,8,8,32,32);
|
||||
m_sc0_tilemap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(caswin_state::get_sc0_tile_info),this),TILEMAP_SCAN_ROWS,8,8,32,32);
|
||||
}
|
||||
|
||||
UINT32 caswin_state::screen_update_vvillage(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect)
|
||||
|
@ -479,8 +479,7 @@ TILE_GET_INFO_MEMBER(cb2001_state::get_cb2001_reel1_tile_info)
|
||||
|
||||
int colour = 0;//= (cb2001_out_c&0x7) + 8;
|
||||
|
||||
SET_TILE_INFO_MEMBER(m_gfxdecode,
|
||||
1,
|
||||
SET_TILE_INFO_MEMBER(1,
|
||||
code+0x800,
|
||||
colour,
|
||||
0);
|
||||
@ -497,8 +496,7 @@ TILE_GET_INFO_MEMBER(cb2001_state::get_cb2001_reel2_tile_info)
|
||||
|
||||
int colour = 0;//(cb2001_out_c&0x7) + 8;
|
||||
|
||||
SET_TILE_INFO_MEMBER(m_gfxdecode,
|
||||
1,
|
||||
SET_TILE_INFO_MEMBER(1,
|
||||
code+0x800,
|
||||
colour,
|
||||
0);
|
||||
@ -515,8 +513,7 @@ TILE_GET_INFO_MEMBER(cb2001_state::get_cb2001_reel3_tile_info)
|
||||
|
||||
code &=0xff;
|
||||
|
||||
SET_TILE_INFO_MEMBER(m_gfxdecode,
|
||||
1,
|
||||
SET_TILE_INFO_MEMBER(1,
|
||||
code+0x800,
|
||||
colour,
|
||||
0);
|
||||
@ -525,9 +522,9 @@ TILE_GET_INFO_MEMBER(cb2001_state::get_cb2001_reel3_tile_info)
|
||||
|
||||
void cb2001_state::video_start()
|
||||
{
|
||||
m_reel1_tilemap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(cb2001_state::get_cb2001_reel1_tile_info),this),TILEMAP_SCAN_ROWS, 8, 32, 64, 8);
|
||||
m_reel2_tilemap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(cb2001_state::get_cb2001_reel2_tile_info),this),TILEMAP_SCAN_ROWS, 8, 32, 64, 8);
|
||||
m_reel3_tilemap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(cb2001_state::get_cb2001_reel3_tile_info),this),TILEMAP_SCAN_ROWS, 8, 32, 64, 8);
|
||||
m_reel1_tilemap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(cb2001_state::get_cb2001_reel1_tile_info),this),TILEMAP_SCAN_ROWS, 8, 32, 64, 8);
|
||||
m_reel2_tilemap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(cb2001_state::get_cb2001_reel2_tile_info),this),TILEMAP_SCAN_ROWS, 8, 32, 64, 8);
|
||||
m_reel3_tilemap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(cb2001_state::get_cb2001_reel3_tile_info),this),TILEMAP_SCAN_ROWS, 8, 32, 64, 8);
|
||||
|
||||
m_reel1_tilemap->set_scroll_cols(64);
|
||||
m_reel2_tilemap->set_scroll_cols(64);
|
||||
|
@ -57,7 +57,7 @@ TILE_GET_INFO_MEMBER(cball_state::get_tile_info)
|
||||
{
|
||||
UINT8 code = m_video_ram[tile_index];
|
||||
|
||||
SET_TILE_INFO_MEMBER(m_gfxdecode, 0, code, code >> 7, 0);
|
||||
SET_TILE_INFO_MEMBER(0, code, code >> 7, 0);
|
||||
}
|
||||
|
||||
|
||||
@ -70,7 +70,7 @@ WRITE8_MEMBER(cball_state::cball_vram_w)
|
||||
|
||||
void cball_state::video_start()
|
||||
{
|
||||
m_bg_tilemap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(cball_state::get_tile_info),this), TILEMAP_SCAN_ROWS, 8, 8, 32, 32);
|
||||
m_bg_tilemap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(cball_state::get_tile_info),this), TILEMAP_SCAN_ROWS, 8, 8, 32, 32);
|
||||
}
|
||||
|
||||
|
||||
|
@ -149,7 +149,7 @@ TILE_GET_INFO_MEMBER(chanbara_state::get_bg_tile_info)
|
||||
int code = m_videoram[tile_index] + ((m_colorram[tile_index] & 1) << 8);
|
||||
int color = (m_colorram[tile_index] >> 1) & 0x1f;
|
||||
|
||||
SET_TILE_INFO_MEMBER(m_gfxdecode, 0, code, color, 0);
|
||||
SET_TILE_INFO_MEMBER(0, code, color, 0);
|
||||
}
|
||||
|
||||
TILE_GET_INFO_MEMBER(chanbara_state::get_bg2_tile_info)
|
||||
@ -157,13 +157,13 @@ TILE_GET_INFO_MEMBER(chanbara_state::get_bg2_tile_info)
|
||||
int code = m_videoram2[tile_index];
|
||||
int color = (m_colorram2[tile_index] >> 1) & 0x1f;
|
||||
|
||||
SET_TILE_INFO_MEMBER(m_gfxdecode, 2, code, color, 0);
|
||||
SET_TILE_INFO_MEMBER(2, code, color, 0);
|
||||
}
|
||||
|
||||
void chanbara_state::video_start()
|
||||
{
|
||||
m_bg_tilemap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(chanbara_state::get_bg_tile_info),this), TILEMAP_SCAN_ROWS,8, 8, 32, 32);
|
||||
m_bg2_tilemap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(chanbara_state::get_bg2_tile_info),this), TILEMAP_SCAN_ROWS,16, 16, 16, 32);
|
||||
m_bg_tilemap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(chanbara_state::get_bg_tile_info),this), TILEMAP_SCAN_ROWS,8, 8, 32, 32);
|
||||
m_bg2_tilemap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(chanbara_state::get_bg2_tile_info),this), TILEMAP_SCAN_ROWS,16, 16, 16, 32);
|
||||
m_bg_tilemap->set_transparent_pen(0);
|
||||
}
|
||||
|
||||
|
@ -72,8 +72,7 @@ TILE_GET_INFO_MEMBER(chance32_state::get_fg_tile_info)
|
||||
{
|
||||
int code = (m_fgram[tile_index * 2 + 1] << 8) | m_fgram[tile_index * 2];
|
||||
int flip = (~code >> 12)&1;
|
||||
SET_TILE_INFO_MEMBER(m_gfxdecode,
|
||||
1,
|
||||
SET_TILE_INFO_MEMBER(1,
|
||||
code & 0x0fff,
|
||||
code >> 13,
|
||||
TILE_FLIPYX(flip<<1)|flip);
|
||||
@ -83,8 +82,7 @@ TILE_GET_INFO_MEMBER(chance32_state::get_bg_tile_info)
|
||||
{
|
||||
int code = (m_bgram[tile_index * 2 +1] << 8) | m_bgram[tile_index * 2];
|
||||
int flip = (~code >> 12)&1;
|
||||
SET_TILE_INFO_MEMBER(m_gfxdecode,
|
||||
0,
|
||||
SET_TILE_INFO_MEMBER(0,
|
||||
code & 0x0fff,
|
||||
code >> 13,
|
||||
TILE_FLIPYX(flip<<1|flip));
|
||||
@ -93,10 +91,10 @@ TILE_GET_INFO_MEMBER(chance32_state::get_bg_tile_info)
|
||||
|
||||
void chance32_state::video_start()
|
||||
{
|
||||
m_fg_tilemap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(chance32_state::get_fg_tile_info),this), TILEMAP_SCAN_ROWS, 16, 8, 35, 29);
|
||||
m_fg_tilemap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(chance32_state::get_fg_tile_info),this), TILEMAP_SCAN_ROWS, 16, 8, 35, 29);
|
||||
m_fg_tilemap->set_transparent_pen(0);
|
||||
|
||||
m_bg_tilemap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(chance32_state::get_bg_tile_info),this), TILEMAP_SCAN_ROWS, 16, 8, 35, 29);
|
||||
m_bg_tilemap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(chance32_state::get_bg_tile_info),this), TILEMAP_SCAN_ROWS, 16, 8, 35, 29);
|
||||
|
||||
m_fg_tilemap->set_flip(TILE_FLIPX|TILE_FLIPY);
|
||||
m_bg_tilemap->set_flip(TILE_FLIPX|TILE_FLIPY);
|
||||
|
@ -113,8 +113,8 @@ public:
|
||||
|
||||
VIDEO_START_MEMBER(chinagat_state,chinagat)
|
||||
{
|
||||
m_bg_tilemap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(chinagat_state::get_bg_tile_info),this),tilemap_mapper_delegate(FUNC(chinagat_state::background_scan),this), 16, 16, 32, 32);
|
||||
m_fg_tilemap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(chinagat_state::get_fg_16color_tile_info),this),TILEMAP_SCAN_ROWS, 8, 8, 32, 32);
|
||||
m_bg_tilemap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(chinagat_state::get_bg_tile_info),this),tilemap_mapper_delegate(FUNC(chinagat_state::background_scan),this), 16, 16, 32, 32);
|
||||
m_fg_tilemap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(chinagat_state::get_fg_16color_tile_info),this),TILEMAP_SCAN_ROWS, 8, 8, 32, 32);
|
||||
|
||||
m_fg_tilemap->set_transparent_pen(0);
|
||||
m_fg_tilemap->set_scrolldy(-8, -8);
|
||||
|
@ -139,7 +139,7 @@ TILE_GET_INFO_MEMBER(cntsteer_state::get_bg_tile_info)
|
||||
{
|
||||
int code = m_videoram2[tile_index];
|
||||
|
||||
SET_TILE_INFO_MEMBER(m_gfxdecode, 2, code + m_bg_bank, m_bg_color_bank, 0);
|
||||
SET_TILE_INFO_MEMBER(2, code + m_bg_bank, m_bg_color_bank, 0);
|
||||
}
|
||||
|
||||
TILE_GET_INFO_MEMBER(cntsteer_state::get_fg_tile_info)
|
||||
@ -149,13 +149,13 @@ TILE_GET_INFO_MEMBER(cntsteer_state::get_fg_tile_info)
|
||||
|
||||
code |= (attr & 0x01) << 8;
|
||||
|
||||
SET_TILE_INFO_MEMBER(m_gfxdecode, 0, code, 0x30 + ((attr & 0x78) >> 3), 0);
|
||||
SET_TILE_INFO_MEMBER(0, code, 0x30 + ((attr & 0x78) >> 3), 0);
|
||||
}
|
||||
|
||||
VIDEO_START_MEMBER(cntsteer_state,cntsteer)
|
||||
{
|
||||
m_bg_tilemap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(cntsteer_state::get_bg_tile_info),this), TILEMAP_SCAN_COLS, 16, 16, 64, 64);
|
||||
m_fg_tilemap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(cntsteer_state::get_fg_tile_info),this), TILEMAP_SCAN_ROWS_FLIP_X, 8, 8, 32, 32);
|
||||
m_bg_tilemap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(cntsteer_state::get_bg_tile_info),this), TILEMAP_SCAN_COLS, 16, 16, 64, 64);
|
||||
m_fg_tilemap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(cntsteer_state::get_fg_tile_info),this), TILEMAP_SCAN_ROWS_FLIP_X, 8, 8, 32, 32);
|
||||
|
||||
m_fg_tilemap->set_transparent_pen(0);
|
||||
|
||||
@ -164,8 +164,8 @@ VIDEO_START_MEMBER(cntsteer_state,cntsteer)
|
||||
|
||||
VIDEO_START_MEMBER(cntsteer_state,zerotrgt)
|
||||
{
|
||||
m_bg_tilemap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(cntsteer_state::get_bg_tile_info),this), TILEMAP_SCAN_ROWS, 16, 16, 64, 64);
|
||||
m_fg_tilemap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(cntsteer_state::get_fg_tile_info),this), TILEMAP_SCAN_ROWS_FLIP_X, 8, 8, 32, 32);
|
||||
m_bg_tilemap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(cntsteer_state::get_bg_tile_info),this), TILEMAP_SCAN_ROWS, 16, 16, 64, 64);
|
||||
m_fg_tilemap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(cntsteer_state::get_fg_tile_info),this), TILEMAP_SCAN_ROWS_FLIP_X, 8, 8, 32, 32);
|
||||
|
||||
m_fg_tilemap->set_transparent_pen(0);
|
||||
|
||||
|
@ -1103,12 +1103,12 @@ TILE_GET_INFO_MEMBER(coinmstr_state::get_bg_tile_info)
|
||||
|
||||
tile |= (m_attr_ram3[tile_index + 0x0240] & 0x03) << (6+4);
|
||||
|
||||
SET_TILE_INFO_MEMBER(m_gfxdecode, 0, tile, color, 0);
|
||||
SET_TILE_INFO_MEMBER(0, tile, color, 0);
|
||||
}
|
||||
|
||||
void coinmstr_state::video_start()
|
||||
{
|
||||
m_bg_tilemap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(coinmstr_state::get_bg_tile_info),this), TILEMAP_SCAN_ROWS, 8, 8, 46, 32);
|
||||
m_bg_tilemap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(coinmstr_state::get_bg_tile_info),this), TILEMAP_SCAN_ROWS, 8, 8, 46, 32);
|
||||
}
|
||||
|
||||
UINT32 coinmstr_state::screen_update_coinmstr(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect)
|
||||
|
@ -155,7 +155,7 @@ TILE_GET_INFO_MEMBER(cshooter_state::get_cstx_tile_info)
|
||||
int attr = (m_txram[tile_index*2+1]);
|
||||
int color = attr & 0xf;
|
||||
|
||||
SET_TILE_INFO_MEMBER(m_gfxdecode, 0, (code << 1) | ((attr & 0x20) >> 5), color, 0);
|
||||
SET_TILE_INFO_MEMBER(0, (code << 1) | ((attr & 0x20) >> 5), color, 0);
|
||||
}
|
||||
|
||||
WRITE8_MEMBER(cshooter_state::cshooter_txram_w)
|
||||
@ -166,7 +166,7 @@ WRITE8_MEMBER(cshooter_state::cshooter_txram_w)
|
||||
|
||||
void cshooter_state::video_start()
|
||||
{
|
||||
m_txtilemap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(cshooter_state::get_cstx_tile_info),this),TILEMAP_SCAN_ROWS, 8,8,32,32);
|
||||
m_txtilemap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(cshooter_state::get_cstx_tile_info),this),TILEMAP_SCAN_ROWS, 8,8,32,32);
|
||||
m_txtilemap->set_transparent_pen(0);
|
||||
}
|
||||
|
||||
|
@ -85,12 +85,12 @@ TILE_GET_INFO_MEMBER(cswat_state::get_tile_info)
|
||||
int code = m_videoram[tile_index] | (attr << 8 & 0x300);
|
||||
int flags = TILE_FLIPYX(attr >> 2);
|
||||
|
||||
SET_TILE_INFO_MEMBER(m_gfxdecode, 0, code, color, flags);
|
||||
SET_TILE_INFO_MEMBER(0, code, color, flags);
|
||||
}
|
||||
|
||||
void cswat_state::video_start()
|
||||
{
|
||||
m_tilemap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(cswat_state::get_tile_info),this), tilemap_mapper_delegate(FUNC(cswat_state::tilemap_scan_rows),this), 8, 8, 36, 28);
|
||||
m_tilemap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(cswat_state::get_tile_info),this), tilemap_mapper_delegate(FUNC(cswat_state::tilemap_scan_rows),this), 8, 8, 36, 28);
|
||||
}
|
||||
|
||||
UINT32 cswat_state::screen_update_cswat(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect)
|
||||
|
@ -72,27 +72,27 @@ TILE_GET_INFO_MEMBER(cultures_state::get_bg1_tile_info)
|
||||
{
|
||||
UINT8 *region = memregion("gfx3")->base() + 0x200000 + 0x80000 * m_bg1_bank;
|
||||
int code = region[tile_index * 2] + (region[tile_index * 2 + 1] << 8);
|
||||
SET_TILE_INFO_MEMBER(m_gfxdecode, 2, code, code >> 12, 0);
|
||||
SET_TILE_INFO_MEMBER(2, code, code >> 12, 0);
|
||||
}
|
||||
|
||||
TILE_GET_INFO_MEMBER(cultures_state::get_bg2_tile_info)
|
||||
{
|
||||
UINT8 *region = memregion("gfx2")->base() + 0x200000 + 0x80000 * m_bg2_bank;
|
||||
int code = region[tile_index * 2] + (region[tile_index * 2 + 1] << 8);
|
||||
SET_TILE_INFO_MEMBER(m_gfxdecode, 1, code, code >> 12, 0);
|
||||
SET_TILE_INFO_MEMBER(1, code, code >> 12, 0);
|
||||
}
|
||||
|
||||
TILE_GET_INFO_MEMBER(cultures_state::get_bg0_tile_info)
|
||||
{
|
||||
int code = m_bg0_videoram[tile_index * 2] + (m_bg0_videoram[tile_index * 2 + 1] << 8);
|
||||
SET_TILE_INFO_MEMBER(m_gfxdecode, 0, code, code >> 12, 0);
|
||||
SET_TILE_INFO_MEMBER(0, code, code >> 12, 0);
|
||||
}
|
||||
|
||||
void cultures_state::video_start()
|
||||
{
|
||||
m_bg0_tilemap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(cultures_state::get_bg0_tile_info),this),TILEMAP_SCAN_ROWS, 8, 8, 64, 128);
|
||||
m_bg1_tilemap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(cultures_state::get_bg1_tile_info),this),TILEMAP_SCAN_ROWS, 8, 8, 512, 512);
|
||||
m_bg2_tilemap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(cultures_state::get_bg2_tile_info),this),TILEMAP_SCAN_ROWS, 8, 8, 512, 512);
|
||||
m_bg0_tilemap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(cultures_state::get_bg0_tile_info),this),TILEMAP_SCAN_ROWS, 8, 8, 64, 128);
|
||||
m_bg1_tilemap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(cultures_state::get_bg1_tile_info),this),TILEMAP_SCAN_ROWS, 8, 8, 512, 512);
|
||||
m_bg2_tilemap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(cultures_state::get_bg2_tile_info),this),TILEMAP_SCAN_ROWS, 8, 8, 512, 512);
|
||||
|
||||
m_bg1_tilemap->set_transparent_pen(0);
|
||||
m_bg0_tilemap->set_transparent_pen(0);
|
||||
|
@ -412,13 +412,13 @@ static MACHINE_CONFIG_START( cyberbal, cyberbal_state )
|
||||
MCFG_GFXDECODE_ADD("gfxdecode", interleaved)
|
||||
MCFG_PALETTE_ADD("palette", 4096)
|
||||
|
||||
MCFG_TILEMAP_ADD_STANDARD("playfield", 2, cyberbal_state, get_playfield_tile_info, 16,8, SCAN_ROWS, 64,64)
|
||||
MCFG_TILEMAP_ADD_STANDARD_TRANSPEN("alpha", 2, cyberbal_state, get_alpha_tile_info, 16,8, SCAN_ROWS, 64,32, 0)
|
||||
MCFG_TILEMAP_ADD_STANDARD("playfield", "gfxdecode", 2, cyberbal_state, get_playfield_tile_info, 16,8, SCAN_ROWS, 64,64)
|
||||
MCFG_TILEMAP_ADD_STANDARD_TRANSPEN("alpha", "gfxdecode", 2, cyberbal_state, get_alpha_tile_info, 16,8, SCAN_ROWS, 64,32, 0)
|
||||
MCFG_ATARI_MOTION_OBJECTS_ADD("mob", "lscreen", cyberbal_state::s_mob_config)
|
||||
MCFG_ATARI_MOTION_OBJECTS_GFXDECODE("gfxdecode")
|
||||
|
||||
MCFG_TILEMAP_ADD_STANDARD("playfield2", 2, cyberbal_state, get_playfield_tile_info, 16,8, SCAN_ROWS, 64,64)
|
||||
MCFG_TILEMAP_ADD_STANDARD_TRANSPEN("alpha2", 2, cyberbal_state, get_alpha_tile_info, 16,8, SCAN_ROWS, 64,32, 0)
|
||||
MCFG_TILEMAP_ADD_STANDARD("playfield2", "gfxdecode", 2, cyberbal_state, get_playfield_tile_info, 16,8, SCAN_ROWS, 64,64)
|
||||
MCFG_TILEMAP_ADD_STANDARD_TRANSPEN("alpha2", "gfxdecode", 2, cyberbal_state, get_alpha_tile_info, 16,8, SCAN_ROWS, 64,32, 0)
|
||||
MCFG_ATARI_MOTION_OBJECTS_ADD("mob2", "rscreen", cyberbal_state::s_mob_config)
|
||||
MCFG_ATARI_MOTION_OBJECTS_GFXDECODE("gfxdecode")
|
||||
|
||||
@ -477,8 +477,8 @@ static MACHINE_CONFIG_START( cyberbal2p, cyberbal_state )
|
||||
MCFG_GFXDECODE_ADD("gfxdecode", cyberbal)
|
||||
MCFG_PALETTE_ADD("palette", 2048)
|
||||
|
||||
MCFG_TILEMAP_ADD_STANDARD("playfield", 2, cyberbal_state, get_playfield_tile_info, 16,8, SCAN_ROWS, 64,64)
|
||||
MCFG_TILEMAP_ADD_STANDARD_TRANSPEN("alpha", 2, cyberbal_state, get_alpha_tile_info, 16,8, SCAN_ROWS, 64,32, 0)
|
||||
MCFG_TILEMAP_ADD_STANDARD("playfield", "gfxdecode", 2, cyberbal_state, get_playfield_tile_info, 16,8, SCAN_ROWS, 64,64)
|
||||
MCFG_TILEMAP_ADD_STANDARD_TRANSPEN("alpha", "gfxdecode", 2, cyberbal_state, get_alpha_tile_info, 16,8, SCAN_ROWS, 64,32, 0)
|
||||
MCFG_ATARI_MOTION_OBJECTS_ADD("mob", "screen", cyberbal_state::s_mob_config)
|
||||
MCFG_ATARI_MOTION_OBJECTS_GFXDECODE("gfxdecode")
|
||||
|
||||
|
@ -249,8 +249,7 @@ TILE_GET_INFO_MEMBER(cybertnk_state::get_tilemap0_tile_info)
|
||||
int pal = (code & 0xe000) >> 13;
|
||||
pal |=(code & 0x1c00) >> 7;
|
||||
|
||||
SET_TILE_INFO_MEMBER(m_gfxdecode,
|
||||
0,
|
||||
SET_TILE_INFO_MEMBER(0,
|
||||
code & 0x1fff,
|
||||
pal,
|
||||
0);
|
||||
@ -262,8 +261,7 @@ TILE_GET_INFO_MEMBER(cybertnk_state::get_tilemap1_tile_info)
|
||||
int pal = (code & 0xe000) >> 13;
|
||||
pal |=(code & 0x1c00) >> 7;
|
||||
|
||||
SET_TILE_INFO_MEMBER(m_gfxdecode,
|
||||
1,
|
||||
SET_TILE_INFO_MEMBER(1,
|
||||
code & 0x1fff,
|
||||
pal,
|
||||
0);
|
||||
@ -275,8 +273,7 @@ TILE_GET_INFO_MEMBER(cybertnk_state::get_tilemap2_tile_info)
|
||||
int pal = (code & 0xe000) >> 13;
|
||||
pal |=(code & 0x1c00) >> 7;
|
||||
|
||||
SET_TILE_INFO_MEMBER(m_gfxdecode,
|
||||
2,
|
||||
SET_TILE_INFO_MEMBER(2,
|
||||
code & 0x1fff,
|
||||
pal,
|
||||
0);
|
||||
@ -284,13 +281,13 @@ TILE_GET_INFO_MEMBER(cybertnk_state::get_tilemap2_tile_info)
|
||||
|
||||
void cybertnk_state::video_start()
|
||||
{
|
||||
m_tilemap0_tilemap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(cybertnk_state::get_tilemap0_tile_info),this),TILEMAP_SCAN_ROWS,8,8,128,32);
|
||||
m_tilemap0_tilemap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(cybertnk_state::get_tilemap0_tile_info),this),TILEMAP_SCAN_ROWS,8,8,128,32);
|
||||
m_tilemap0_tilemap->set_transparent_pen(0);
|
||||
|
||||
m_tilemap1_tilemap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(cybertnk_state::get_tilemap1_tile_info),this),TILEMAP_SCAN_ROWS,8,8,128,32);
|
||||
m_tilemap1_tilemap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(cybertnk_state::get_tilemap1_tile_info),this),TILEMAP_SCAN_ROWS,8,8,128,32);
|
||||
m_tilemap1_tilemap->set_transparent_pen(0);
|
||||
|
||||
m_tilemap2_tilemap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(cybertnk_state::get_tilemap2_tile_info),this),TILEMAP_SCAN_ROWS,8,8,128,32);
|
||||
m_tilemap2_tilemap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(cybertnk_state::get_tilemap2_tile_info),this),TILEMAP_SCAN_ROWS,8,8,128,32);
|
||||
m_tilemap2_tilemap->set_transparent_pen(0);
|
||||
}
|
||||
|
||||
|
@ -61,8 +61,7 @@ TILE_GET_INFO_MEMBER(d9final_state::get_sc0_tile_info)
|
||||
int tile = ((m_hi_vram[tile_index] & 0x3f)<<8) | m_lo_vram[tile_index];
|
||||
int color = m_cram[tile_index] & 0x3f;
|
||||
|
||||
SET_TILE_INFO_MEMBER(m_gfxdecode,
|
||||
0,
|
||||
SET_TILE_INFO_MEMBER(0,
|
||||
tile,
|
||||
color,
|
||||
0);
|
||||
@ -70,7 +69,7 @@ TILE_GET_INFO_MEMBER(d9final_state::get_sc0_tile_info)
|
||||
|
||||
void d9final_state::video_start()
|
||||
{
|
||||
m_sc0_tilemap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(d9final_state::get_sc0_tile_info),this),TILEMAP_SCAN_ROWS,8,8,64,32);
|
||||
m_sc0_tilemap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(d9final_state::get_sc0_tile_info),this),TILEMAP_SCAN_ROWS,8,8,64,32);
|
||||
}
|
||||
|
||||
UINT32 d9final_state::screen_update_d9final(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect)
|
||||
|
@ -104,18 +104,18 @@ public:
|
||||
|
||||
TILE_GET_INFO_MEMBER(dacholer_state::get_bg_tile_info)
|
||||
{
|
||||
SET_TILE_INFO_MEMBER(m_gfxdecode, 1, m_bgvideoram[tile_index] + m_bg_bank * 0x100, 0, 0);
|
||||
SET_TILE_INFO_MEMBER(1, m_bgvideoram[tile_index] + m_bg_bank * 0x100, 0, 0);
|
||||
}
|
||||
|
||||
TILE_GET_INFO_MEMBER(dacholer_state::get_fg_tile_info)
|
||||
{
|
||||
SET_TILE_INFO_MEMBER(m_gfxdecode, 0, m_fgvideoram[tile_index], 0, 0);
|
||||
SET_TILE_INFO_MEMBER(0, m_fgvideoram[tile_index], 0, 0);
|
||||
}
|
||||
|
||||
void dacholer_state::video_start()
|
||||
{
|
||||
m_bg_tilemap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(dacholer_state::get_bg_tile_info),this), TILEMAP_SCAN_ROWS, 8, 8, 32, 32);
|
||||
m_fg_tilemap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(dacholer_state::get_fg_tile_info),this), TILEMAP_SCAN_ROWS, 8, 8, 32, 32);
|
||||
m_bg_tilemap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(dacholer_state::get_bg_tile_info),this), TILEMAP_SCAN_ROWS, 8, 8, 32, 32);
|
||||
m_fg_tilemap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(dacholer_state::get_fg_tile_info),this), TILEMAP_SCAN_ROWS, 8, 8, 32, 32);
|
||||
|
||||
m_fg_tilemap->set_transparent_pen(0);
|
||||
}
|
||||
|
@ -385,12 +385,12 @@ TILE_GET_INFO_MEMBER(ddayjlc_state::get_tile_info_bg)
|
||||
int color = (m_bgram[tile_index + 0x400] & 0x7);
|
||||
color |= (m_bgram[tile_index + 0x400] & 0x40) >> 3;
|
||||
|
||||
SET_TILE_INFO_MEMBER(m_gfxdecode, 2, code, color, 0);
|
||||
SET_TILE_INFO_MEMBER(2, code, color, 0);
|
||||
}
|
||||
|
||||
void ddayjlc_state::video_start()
|
||||
{
|
||||
m_bg_tilemap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(ddayjlc_state::get_tile_info_bg),this), TILEMAP_SCAN_ROWS, 8, 8, 32, 32);
|
||||
m_bg_tilemap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(ddayjlc_state::get_tile_info_bg),this), TILEMAP_SCAN_ROWS, 8, 8, 32, 32);
|
||||
}
|
||||
|
||||
UINT32 ddayjlc_state::screen_update_ddayjlc(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect)
|
||||
|
@ -182,8 +182,7 @@ WRITE16_MEMBER(ddealer_state::ddealer_flipscreen_w)
|
||||
TILE_GET_INFO_MEMBER(ddealer_state::get_back_tile_info)
|
||||
{
|
||||
int code = m_back_vram[tile_index];
|
||||
SET_TILE_INFO_MEMBER(m_gfxdecode,
|
||||
0,
|
||||
SET_TILE_INFO_MEMBER(0,
|
||||
code & 0xfff,
|
||||
code >> 12,
|
||||
0);
|
||||
@ -192,7 +191,7 @@ TILE_GET_INFO_MEMBER(ddealer_state::get_back_tile_info)
|
||||
void ddealer_state::video_start()
|
||||
{
|
||||
m_flipscreen = 0;
|
||||
m_back_tilemap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(ddealer_state::get_back_tile_info),this), TILEMAP_SCAN_COLS, 8, 8, 64, 32);
|
||||
m_back_tilemap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(ddealer_state::get_back_tile_info),this), TILEMAP_SCAN_COLS, 8, 8, 64, 32);
|
||||
}
|
||||
|
||||
void ddealer_state::ddealer_draw_video_layer( UINT16* vreg_base, UINT16* top, UINT16* bottom, bitmap_ind16 &bitmap, const rectangle &cliprect, int flipy)
|
||||
|
@ -342,8 +342,7 @@ TILE_GET_INFO_MEMBER(dmndrby_state::get_dmndrby_tile_info)
|
||||
int flipx = (attr&0x40)>>6;
|
||||
|
||||
|
||||
SET_TILE_INFO_MEMBER(m_gfxdecode,
|
||||
2,
|
||||
SET_TILE_INFO_MEMBER(2,
|
||||
code,
|
||||
col,
|
||||
TILE_FLIPYX(flipx) );
|
||||
@ -353,7 +352,7 @@ TILE_GET_INFO_MEMBER(dmndrby_state::get_dmndrby_tile_info)
|
||||
void dmndrby_state::video_start()
|
||||
{
|
||||
m_racetrack_tilemap_rom = memregion("user1")->base();
|
||||
m_racetrack_tilemap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(dmndrby_state::get_dmndrby_tile_info),this),TILEMAP_SCAN_ROWS,16,16, 16, 512);
|
||||
m_racetrack_tilemap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(dmndrby_state::get_dmndrby_tile_info),this),TILEMAP_SCAN_ROWS,16,16, 16, 512);
|
||||
m_racetrack_tilemap->mark_all_dirty();
|
||||
|
||||
}
|
||||
|
@ -250,7 +250,7 @@ TILE_GET_INFO_MEMBER(dreamwld_state::get_dreamwld_bg_tile_info)
|
||||
tileno = (tile_index & 1) ? (m_bg_videoram[tile_index >> 1] & 0xffff) : ((m_bg_videoram[tile_index >> 1] >> 16) & 0xffff);
|
||||
colour = tileno >> 13;
|
||||
tileno &= 0x1fff;
|
||||
SET_TILE_INFO_MEMBER(m_gfxdecode, 1, tileno + m_tilebank[0] * 0x2000, 0x80 + colour, 0);
|
||||
SET_TILE_INFO_MEMBER(1, tileno + m_tilebank[0] * 0x2000, 0x80 + colour, 0);
|
||||
}
|
||||
|
||||
|
||||
@ -267,13 +267,13 @@ TILE_GET_INFO_MEMBER(dreamwld_state::get_dreamwld_bg2_tile_info)
|
||||
tileno = (tile_index & 1) ? (m_bg2_videoram[tile_index >> 1] & 0xffff) : ((m_bg2_videoram[tile_index >> 1] >> 16) & 0xffff);
|
||||
colour = tileno >> 13;
|
||||
tileno &= 0x1fff;
|
||||
SET_TILE_INFO_MEMBER(m_gfxdecode, 1, tileno + m_tilebank[1] * 0x2000, 0xc0 + colour, 0);
|
||||
SET_TILE_INFO_MEMBER(1, tileno + m_tilebank[1] * 0x2000, 0xc0 + colour, 0);
|
||||
}
|
||||
|
||||
void dreamwld_state::video_start()
|
||||
{
|
||||
m_bg_tilemap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(dreamwld_state::get_dreamwld_bg_tile_info),this),TILEMAP_SCAN_ROWS, 16, 16, 64,32);
|
||||
m_bg2_tilemap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(dreamwld_state::get_dreamwld_bg2_tile_info),this),TILEMAP_SCAN_ROWS, 16, 16, 64,32);
|
||||
m_bg_tilemap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(dreamwld_state::get_dreamwld_bg_tile_info),this),TILEMAP_SCAN_ROWS, 16, 16, 64,32);
|
||||
m_bg2_tilemap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(dreamwld_state::get_dreamwld_bg2_tile_info),this),TILEMAP_SCAN_ROWS, 16, 16, 64,32);
|
||||
m_bg2_tilemap->set_transparent_pen(0);
|
||||
|
||||
m_bg_tilemap->set_scroll_rows(256); // line scrolling
|
||||
|
@ -58,7 +58,7 @@ TILE_GET_INFO_MEMBER(drtomy_state::get_tile_info_fg)
|
||||
{
|
||||
int code = m_videoram_fg[tile_index] & 0xfff;
|
||||
int color = (m_videoram_fg[tile_index] & 0xf000) >> 12;
|
||||
SET_TILE_INFO_MEMBER(m_gfxdecode, 2, code, color, 0);
|
||||
SET_TILE_INFO_MEMBER(2, code, color, 0);
|
||||
}
|
||||
|
||||
|
||||
@ -66,7 +66,7 @@ TILE_GET_INFO_MEMBER(drtomy_state::get_tile_info_bg)
|
||||
{
|
||||
int code = m_videoram_bg[tile_index] & 0xfff;
|
||||
int color = (m_videoram_bg[tile_index] & 0xf000) >> 12;
|
||||
SET_TILE_INFO_MEMBER(m_gfxdecode, 1, code, color, 0);
|
||||
SET_TILE_INFO_MEMBER(1, code, color, 0);
|
||||
}
|
||||
|
||||
|
||||
@ -132,8 +132,8 @@ void drtomy_state::draw_sprites( bitmap_ind16 &bitmap, const rectangle &cliprect
|
||||
|
||||
void drtomy_state::video_start()
|
||||
{
|
||||
m_tilemap_bg = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(drtomy_state::get_tile_info_bg),this), TILEMAP_SCAN_ROWS, 16, 16, 32, 32);
|
||||
m_tilemap_fg = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(drtomy_state::get_tile_info_fg),this), TILEMAP_SCAN_ROWS, 16, 16, 32, 32);
|
||||
m_tilemap_bg = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(drtomy_state::get_tile_info_bg),this), TILEMAP_SCAN_ROWS, 16, 16, 32, 32);
|
||||
m_tilemap_fg = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(drtomy_state::get_tile_info_fg),this), TILEMAP_SCAN_ROWS, 16, 16, 32, 32);
|
||||
|
||||
m_tilemap_fg->set_transparent_pen(0);
|
||||
}
|
||||
|
@ -335,12 +335,12 @@ TILE_GET_INFO_MEMBER(drw80pkr_state::get_bg_tile_info)
|
||||
int color = m_color_ram[tile_index];
|
||||
int code = m_video_ram[tile_index];
|
||||
|
||||
SET_TILE_INFO_MEMBER(m_gfxdecode, 0, code, color, 0);
|
||||
SET_TILE_INFO_MEMBER(0, code, color, 0);
|
||||
}
|
||||
|
||||
void drw80pkr_state::video_start()
|
||||
{
|
||||
m_bg_tilemap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(drw80pkr_state::get_bg_tile_info),this), TILEMAP_SCAN_ROWS, 8, 8, 24, 27);
|
||||
m_bg_tilemap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(drw80pkr_state::get_bg_tile_info),this), TILEMAP_SCAN_ROWS, 8, 8, 24, 27);
|
||||
}
|
||||
|
||||
UINT32 drw80pkr_state::screen_update_drw80pkr(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect)
|
||||
|
@ -143,19 +143,19 @@ TILE_GET_INFO_MEMBER(dunhuang_state::get_tile_info)
|
||||
{
|
||||
UINT16 code = m_videoram[tile_index];
|
||||
UINT8 color = m_colorram[tile_index] & 0x0f;
|
||||
SET_TILE_INFO_MEMBER(m_gfxdecode, 0, code, color, 0);
|
||||
SET_TILE_INFO_MEMBER(0, code, color, 0);
|
||||
}
|
||||
TILE_GET_INFO_MEMBER(dunhuang_state::get_tile_info2)
|
||||
{
|
||||
UINT16 code = m_videoram2[tile_index];
|
||||
UINT8 color = m_colorram2[tile_index] & 0x0f;
|
||||
SET_TILE_INFO_MEMBER(m_gfxdecode, 1, code, color, 0);
|
||||
SET_TILE_INFO_MEMBER(1, code, color, 0);
|
||||
}
|
||||
|
||||
void dunhuang_state::video_start()
|
||||
{
|
||||
m_tmap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(dunhuang_state::get_tile_info),this), TILEMAP_SCAN_ROWS, 8,8, 0x40,0x20);
|
||||
m_tmap2 = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(dunhuang_state::get_tile_info2),this), TILEMAP_SCAN_ROWS, 8,32, 0x40,0x8);
|
||||
m_tmap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(dunhuang_state::get_tile_info),this), TILEMAP_SCAN_ROWS, 8,8, 0x40,0x20);
|
||||
m_tmap2 = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(dunhuang_state::get_tile_info2),this), TILEMAP_SCAN_ROWS, 8,32, 0x40,0x8);
|
||||
|
||||
m_tmap->set_transparent_pen(0);
|
||||
m_tmap2->set_transparent_pen(0);
|
||||
|
@ -205,14 +205,14 @@ GFXDECODE_END
|
||||
TILE_GET_INFO_MEMBER(dynadice_state::get_tile_info)
|
||||
{
|
||||
int code = m_videoram[tile_index];
|
||||
SET_TILE_INFO_MEMBER(m_gfxdecode, 1, code, 0, 0);
|
||||
SET_TILE_INFO_MEMBER(1, code, 0, 0);
|
||||
}
|
||||
|
||||
void dynadice_state::video_start()
|
||||
{
|
||||
/* pacman - style videoram layout */
|
||||
m_bg_tilemap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(dynadice_state::get_tile_info),this), TILEMAP_SCAN_ROWS, 8, 8, 32, 32);
|
||||
m_top_tilemap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(dynadice_state::get_tile_info),this), TILEMAP_SCAN_COLS, 8, 8, 2, 32);
|
||||
m_bg_tilemap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(dynadice_state::get_tile_info),this), TILEMAP_SCAN_ROWS, 8, 8, 32, 32);
|
||||
m_top_tilemap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(dynadice_state::get_tile_info),this), TILEMAP_SCAN_COLS, 8, 8, 2, 32);
|
||||
m_bg_tilemap->set_scrollx(0, -16);
|
||||
}
|
||||
|
||||
|
@ -146,7 +146,7 @@ TILE_GET_INFO_MEMBER(egghunt_state::get_bg_tile_info)
|
||||
// code += 0;
|
||||
}
|
||||
|
||||
SET_TILE_INFO_MEMBER(m_gfxdecode, 0, code, colour, 0);
|
||||
SET_TILE_INFO_MEMBER(0, code, colour, 0);
|
||||
}
|
||||
|
||||
READ8_MEMBER(egghunt_state::egghunt_bgram_r)
|
||||
@ -183,7 +183,7 @@ WRITE8_MEMBER(egghunt_state::egghunt_atram_w)
|
||||
|
||||
void egghunt_state::video_start()
|
||||
{
|
||||
m_bg_tilemap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(egghunt_state::get_bg_tile_info),this), TILEMAP_SCAN_ROWS, 8, 8, 64, 32);
|
||||
m_bg_tilemap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(egghunt_state::get_bg_tile_info),this), TILEMAP_SCAN_ROWS, 8, 8, 64, 32);
|
||||
|
||||
save_item(NAME(m_bgram));
|
||||
save_item(NAME(m_spram));
|
||||
|
@ -399,8 +399,8 @@ static MACHINE_CONFIG_START( eprom, eprom_state )
|
||||
MCFG_GFXDECODE_ADD("gfxdecode", eprom)
|
||||
MCFG_PALETTE_ADD("palette", 2048)
|
||||
|
||||
MCFG_TILEMAP_ADD_STANDARD("playfield", 2, eprom_state, get_playfield_tile_info, 8,8, SCAN_COLS, 64,64)
|
||||
MCFG_TILEMAP_ADD_STANDARD_TRANSPEN("alpha", 2, eprom_state, get_alpha_tile_info, 8,8, SCAN_ROWS, 64,32, 0)
|
||||
MCFG_TILEMAP_ADD_STANDARD("playfield", "gfxdecode", 2, eprom_state, get_playfield_tile_info, 8,8, SCAN_COLS, 64,64)
|
||||
MCFG_TILEMAP_ADD_STANDARD_TRANSPEN("alpha", "gfxdecode", 2, eprom_state, get_alpha_tile_info, 8,8, SCAN_ROWS, 64,32, 0)
|
||||
MCFG_ATARI_MOTION_OBJECTS_ADD("mob", "screen", eprom_state::s_mob_config)
|
||||
MCFG_ATARI_MOTION_OBJECTS_GFXDECODE("gfxdecode")
|
||||
|
||||
@ -440,8 +440,8 @@ static MACHINE_CONFIG_START( klaxp, eprom_state )
|
||||
MCFG_GFXDECODE_ADD("gfxdecode", eprom)
|
||||
MCFG_PALETTE_ADD("palette", 2048)
|
||||
|
||||
MCFG_TILEMAP_ADD_STANDARD("playfield", 2, eprom_state, get_playfield_tile_info, 8,8, SCAN_COLS, 64,64)
|
||||
MCFG_TILEMAP_ADD_STANDARD_TRANSPEN("alpha", 2, eprom_state, get_alpha_tile_info, 8,8, SCAN_ROWS, 64,32, 0)
|
||||
MCFG_TILEMAP_ADD_STANDARD("playfield", "gfxdecode", 2, eprom_state, get_playfield_tile_info, 8,8, SCAN_COLS, 64,64)
|
||||
MCFG_TILEMAP_ADD_STANDARD_TRANSPEN("alpha", "gfxdecode", 2, eprom_state, get_alpha_tile_info, 8,8, SCAN_ROWS, 64,32, 0)
|
||||
MCFG_ATARI_MOTION_OBJECTS_ADD("mob", "screen", eprom_state::s_mob_config)
|
||||
MCFG_ATARI_MOTION_OBJECTS_GFXDECODE("gfxdecode")
|
||||
|
||||
@ -480,8 +480,8 @@ static MACHINE_CONFIG_START( guts, eprom_state )
|
||||
MCFG_GFXDECODE_ADD("gfxdecode", guts)
|
||||
MCFG_PALETTE_ADD("palette", 2048)
|
||||
|
||||
MCFG_TILEMAP_ADD_STANDARD("playfield", 2, eprom_state, guts_get_playfield_tile_info, 8,8, SCAN_COLS, 64,64)
|
||||
MCFG_TILEMAP_ADD_STANDARD_TRANSPEN("alpha", 2, eprom_state, get_alpha_tile_info, 8,8, SCAN_ROWS, 64,32, 0)
|
||||
MCFG_TILEMAP_ADD_STANDARD("playfield", "gfxdecode", 2, eprom_state, guts_get_playfield_tile_info, 8,8, SCAN_COLS, 64,64)
|
||||
MCFG_TILEMAP_ADD_STANDARD_TRANSPEN("alpha", "gfxdecode", 2, eprom_state, get_alpha_tile_info, 8,8, SCAN_ROWS, 64,32, 0)
|
||||
MCFG_ATARI_MOTION_OBJECTS_ADD("mob", "screen", eprom_state::s_guts_mob_config)
|
||||
MCFG_ATARI_MOTION_OBJECTS_GFXDECODE("gfxdecode")
|
||||
|
||||
|
@ -208,7 +208,7 @@ void ettrivia_state::get_tile_info(tile_data &tileinfo, int tile_index, UINT8 *v
|
||||
|
||||
code += m_gfx_bank * 0x100;
|
||||
|
||||
SET_TILE_INFO_MEMBER(m_gfxdecode, gfx_code,code,color,0);
|
||||
SET_TILE_INFO_MEMBER(gfx_code,code,color,0);
|
||||
}
|
||||
|
||||
TILE_GET_INFO_MEMBER(ettrivia_state::get_tile_info_bg)
|
||||
@ -260,8 +260,8 @@ PALETTE_INIT_MEMBER(ettrivia_state, ettrivia)
|
||||
|
||||
void ettrivia_state::video_start()
|
||||
{
|
||||
m_bg_tilemap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(ettrivia_state::get_tile_info_bg),this),TILEMAP_SCAN_ROWS,8,8,64,32 );
|
||||
m_fg_tilemap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(ettrivia_state::get_tile_info_fg),this),TILEMAP_SCAN_ROWS,8,8,64,32 );
|
||||
m_bg_tilemap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(ettrivia_state::get_tile_info_bg),this),TILEMAP_SCAN_ROWS,8,8,64,32 );
|
||||
m_fg_tilemap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(ettrivia_state::get_tile_info_fg),this),TILEMAP_SCAN_ROWS,8,8,64,32 );
|
||||
|
||||
m_fg_tilemap->set_transparent_pen(0);
|
||||
}
|
||||
|
@ -209,7 +209,7 @@ WRITE8_MEMBER(firefox_state::firefox_disc_data_w)
|
||||
|
||||
TILE_GET_INFO_MEMBER(firefox_state::bgtile_get_info)
|
||||
{
|
||||
SET_TILE_INFO_MEMBER(m_gfxdecode, 0, m_tileram[tile_index], 0, 0);
|
||||
SET_TILE_INFO_MEMBER(0, m_tileram[tile_index], 0, 0);
|
||||
}
|
||||
|
||||
|
||||
@ -222,7 +222,7 @@ WRITE8_MEMBER(firefox_state::tileram_w)
|
||||
|
||||
void firefox_state::video_start()
|
||||
{
|
||||
m_bgtiles = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(firefox_state::bgtile_get_info),this), TILEMAP_SCAN_ROWS, 8,8, 64,64);
|
||||
m_bgtiles = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(firefox_state::bgtile_get_info),this), TILEMAP_SCAN_ROWS, 8,8, 64,64);
|
||||
m_bgtiles->set_transparent_pen(0);
|
||||
m_bgtiles->set_scrolldy(m_screen->visible_area().min_y, 0);
|
||||
}
|
||||
|
@ -109,13 +109,13 @@ TILE_GET_INFO_MEMBER(flyball_state::flyball_get_tile_info)
|
||||
code += 64;
|
||||
}
|
||||
|
||||
SET_TILE_INFO_MEMBER(m_gfxdecode, 0, code, 0, flags);
|
||||
SET_TILE_INFO_MEMBER(0, code, 0, flags);
|
||||
}
|
||||
|
||||
|
||||
void flyball_state::video_start()
|
||||
{
|
||||
m_tmap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(flyball_state::flyball_get_tile_info),this), tilemap_mapper_delegate(FUNC(flyball_state::flyball_get_memory_offset),this), 8, 16, 32, 16);
|
||||
m_tmap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(flyball_state::flyball_get_tile_info),this), tilemap_mapper_delegate(FUNC(flyball_state::flyball_get_memory_offset),this), 8, 16, 32, 16);
|
||||
}
|
||||
|
||||
|
||||
|
@ -369,7 +369,7 @@ static MACHINE_CONFIG_START( foodf, foodf_state )
|
||||
MCFG_GFXDECODE_ADD("gfxdecode", foodf)
|
||||
MCFG_PALETTE_ADD("palette", 256)
|
||||
|
||||
MCFG_TILEMAP_ADD_STANDARD_TRANSPEN("playfield", 2, foodf_state, get_playfield_tile_info, 8,8, SCAN_COLS, 32,32, 0)
|
||||
MCFG_TILEMAP_ADD_STANDARD_TRANSPEN("playfield", "gfxdecode", 2, foodf_state, get_playfield_tile_info, 8,8, SCAN_COLS, 32,32, 0)
|
||||
|
||||
MCFG_SCREEN_ADD("screen", RASTER)
|
||||
MCFG_SCREEN_RAW_PARAMS(MASTER_CLOCK/2, 384, 0, 256, 259, 0, 224)
|
||||
|
@ -105,7 +105,7 @@ TILE_GET_INFO_MEMBER(fresh_state::get_fresh_bg_tile_info)
|
||||
int tileno, pal;
|
||||
tileno = m_bg_videoram[tile_index];
|
||||
pal = m_attr_videoram[tile_index];
|
||||
SET_TILE_INFO_MEMBER(m_gfxdecode, 1, tileno, pal, 0);
|
||||
SET_TILE_INFO_MEMBER(1, tileno, pal, 0);
|
||||
}
|
||||
|
||||
|
||||
@ -127,7 +127,7 @@ TILE_GET_INFO_MEMBER(fresh_state::get_fresh_bg_2_tile_info)
|
||||
int tileno, pal;
|
||||
tileno = m_bg_2_videoram[tile_index];
|
||||
pal = m_attr_2_videoram[tile_index];
|
||||
SET_TILE_INFO_MEMBER(m_gfxdecode, 0, tileno, pal, 0);
|
||||
SET_TILE_INFO_MEMBER(0, tileno, pal, 0);
|
||||
}
|
||||
|
||||
|
||||
@ -148,8 +148,8 @@ WRITE16_MEMBER(fresh_state::fresh_attr_2_videoram_w)
|
||||
|
||||
void fresh_state::video_start()
|
||||
{
|
||||
m_bg_tilemap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(fresh_state::get_fresh_bg_tile_info),this), TILEMAP_SCAN_ROWS, 8, 8, 64, 512);
|
||||
m_bg_2_tilemap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(fresh_state::get_fresh_bg_2_tile_info),this), TILEMAP_SCAN_ROWS, 8, 8, 64, 512);
|
||||
m_bg_tilemap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(fresh_state::get_fresh_bg_tile_info),this), TILEMAP_SCAN_ROWS, 8, 8, 64, 512);
|
||||
m_bg_2_tilemap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(fresh_state::get_fresh_bg_2_tile_info),this), TILEMAP_SCAN_ROWS, 8, 8, 64, 512);
|
||||
|
||||
m_bg_tilemap->set_transparent_pen(255);
|
||||
}
|
||||
|
@ -114,31 +114,31 @@ public:
|
||||
TILE_GET_INFO_MEMBER(galaxi_state::get_bg1_tile_info)
|
||||
{
|
||||
UINT16 code = m_bg1_ram[tile_index];
|
||||
SET_TILE_INFO_MEMBER(m_gfxdecode, 0, code, 0x10 + (code >> 12), 0);
|
||||
SET_TILE_INFO_MEMBER(0, code, 0x10 + (code >> 12), 0);
|
||||
}
|
||||
|
||||
TILE_GET_INFO_MEMBER(galaxi_state::get_bg2_tile_info)
|
||||
{
|
||||
UINT16 code = m_bg2_ram[tile_index];
|
||||
SET_TILE_INFO_MEMBER(m_gfxdecode, 0, code, 0x10 + (code >> 12), 0);
|
||||
SET_TILE_INFO_MEMBER(0, code, 0x10 + (code >> 12), 0);
|
||||
}
|
||||
|
||||
TILE_GET_INFO_MEMBER(galaxi_state::get_bg3_tile_info)
|
||||
{
|
||||
UINT16 code = m_bg3_ram[tile_index];
|
||||
SET_TILE_INFO_MEMBER(m_gfxdecode, 0, code, (code >> 12), 0);
|
||||
SET_TILE_INFO_MEMBER(0, code, (code >> 12), 0);
|
||||
}
|
||||
|
||||
TILE_GET_INFO_MEMBER(galaxi_state::get_bg4_tile_info)
|
||||
{
|
||||
UINT16 code = m_bg4_ram[tile_index];
|
||||
SET_TILE_INFO_MEMBER(m_gfxdecode, 0, code, (code >> 12), 0);
|
||||
SET_TILE_INFO_MEMBER(0, code, (code >> 12), 0);
|
||||
}
|
||||
|
||||
TILE_GET_INFO_MEMBER(galaxi_state::get_fg_tile_info)
|
||||
{
|
||||
UINT16 code = m_fg_ram[tile_index];
|
||||
SET_TILE_INFO_MEMBER(m_gfxdecode, 1, code, 0x20 + (code >> 12), 0);
|
||||
SET_TILE_INFO_MEMBER(1, code, 0x20 + (code >> 12), 0);
|
||||
}
|
||||
|
||||
WRITE16_MEMBER(galaxi_state::galaxi_bg1_w)
|
||||
@ -173,12 +173,12 @@ WRITE16_MEMBER(galaxi_state::galaxi_fg_w)
|
||||
|
||||
void galaxi_state::video_start()
|
||||
{
|
||||
m_bg1_tmap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(galaxi_state::get_bg1_tile_info),this), TILEMAP_SCAN_ROWS, 16, 16, 0x20, 0x10);
|
||||
m_bg2_tmap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(galaxi_state::get_bg2_tile_info),this), TILEMAP_SCAN_ROWS, 16, 16, 0x20, 0x10);
|
||||
m_bg3_tmap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(galaxi_state::get_bg3_tile_info),this), TILEMAP_SCAN_ROWS, 16, 16, 0x20, 0x10);
|
||||
m_bg4_tmap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(galaxi_state::get_bg4_tile_info),this), TILEMAP_SCAN_ROWS, 16, 16, 0x20, 0x10);
|
||||
m_bg1_tmap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(galaxi_state::get_bg1_tile_info),this), TILEMAP_SCAN_ROWS, 16, 16, 0x20, 0x10);
|
||||
m_bg2_tmap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(galaxi_state::get_bg2_tile_info),this), TILEMAP_SCAN_ROWS, 16, 16, 0x20, 0x10);
|
||||
m_bg3_tmap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(galaxi_state::get_bg3_tile_info),this), TILEMAP_SCAN_ROWS, 16, 16, 0x20, 0x10);
|
||||
m_bg4_tmap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(galaxi_state::get_bg4_tile_info),this), TILEMAP_SCAN_ROWS, 16, 16, 0x20, 0x10);
|
||||
|
||||
m_fg_tmap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(galaxi_state::get_fg_tile_info),this), TILEMAP_SCAN_ROWS, 8, 8, 0x40, 0x20);
|
||||
m_fg_tmap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(galaxi_state::get_fg_tile_info),this), TILEMAP_SCAN_ROWS, 8, 8, 0x40, 0x20);
|
||||
|
||||
m_bg1_tmap->set_transparent_pen(0);
|
||||
m_bg2_tmap->set_transparent_pen(0);
|
||||
|
@ -513,8 +513,8 @@ static MACHINE_CONFIG_START( gauntlet, gauntlet_state )
|
||||
MCFG_PALETTE_ADD("palette", 1024)
|
||||
MCFG_PALETTE_FORMAT(IIIIRRRRGGGGBBBB)
|
||||
|
||||
MCFG_TILEMAP_ADD_STANDARD("playfield", 2, gauntlet_state, get_playfield_tile_info, 8,8, SCAN_COLS, 64,64)
|
||||
MCFG_TILEMAP_ADD_STANDARD_TRANSPEN("alpha", 2, gauntlet_state, get_alpha_tile_info, 8,8, SCAN_ROWS, 64,32, 0)
|
||||
MCFG_TILEMAP_ADD_STANDARD("playfield", "gfxdecode", 2, gauntlet_state, get_playfield_tile_info, 8,8, SCAN_COLS, 64,64)
|
||||
MCFG_TILEMAP_ADD_STANDARD_TRANSPEN("alpha", "gfxdecode", 2, gauntlet_state, get_alpha_tile_info, 8,8, SCAN_ROWS, 64,32, 0)
|
||||
MCFG_ATARI_MOTION_OBJECTS_ADD("mob", "screen", gauntlet_state::s_mob_config)
|
||||
MCFG_ATARI_MOTION_OBJECTS_GFXDECODE("gfxdecode")
|
||||
|
||||
|
@ -255,13 +255,13 @@ TILE_GET_INFO_MEMBER(gluck2_state::get_gluck2_tile_info)
|
||||
int bank = ((attr & 0xc0) >> 5 ) + ((attr & 0x02) >> 1 ); /* bits 1-6-7 handle the gfx banks */
|
||||
int color = (attr & 0x3c) >> 2; /* bits 2-3-4-5 handle the color */
|
||||
|
||||
SET_TILE_INFO_MEMBER(m_gfxdecode, bank, code, color, 0);
|
||||
SET_TILE_INFO_MEMBER(bank, code, color, 0);
|
||||
}
|
||||
|
||||
|
||||
void gluck2_state::video_start()
|
||||
{
|
||||
m_bg_tilemap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(gluck2_state::get_gluck2_tile_info),this), TILEMAP_SCAN_ROWS, 8, 8, 32, 32);
|
||||
m_bg_tilemap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(gluck2_state::get_gluck2_tile_info),this), TILEMAP_SCAN_ROWS, 8, 8, 32, 32);
|
||||
}
|
||||
|
||||
|
||||
|
@ -1123,7 +1123,7 @@ TILE_GET_INFO_MEMBER(goldnpkr_state::get_bg_tile_info)
|
||||
int bank = (attr & 0x02) >> 1; /* bit 1 switch the gfx banks */
|
||||
int color = (attr & 0x3c) >> 2; /* bits 2-3-4-5 for color */
|
||||
|
||||
SET_TILE_INFO_MEMBER(m_gfxdecode, bank, code, color, 0);
|
||||
SET_TILE_INFO_MEMBER(bank, code, color, 0);
|
||||
}
|
||||
|
||||
TILE_GET_INFO_MEMBER(goldnpkr_state::wcrdxtnd_get_bg_tile_info)
|
||||
@ -1141,17 +1141,17 @@ TILE_GET_INFO_MEMBER(goldnpkr_state::wcrdxtnd_get_bg_tile_info)
|
||||
int bank = (attr & 0x03) + ((attr & 0xc0) >> 4); /* bits 0, 1, 6 & 7 switch the gfx banks */
|
||||
int color = (attr & 0x3c) >> 2; /* bits 2-3-4-5 for color */
|
||||
|
||||
SET_TILE_INFO_MEMBER(m_gfxdecode, bank, code, color, 0);
|
||||
SET_TILE_INFO_MEMBER(bank, code, color, 0);
|
||||
}
|
||||
|
||||
void goldnpkr_state::video_start()
|
||||
{
|
||||
m_bg_tilemap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(goldnpkr_state::get_bg_tile_info),this), TILEMAP_SCAN_ROWS, 8, 8, 32, 32);
|
||||
m_bg_tilemap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(goldnpkr_state::get_bg_tile_info),this), TILEMAP_SCAN_ROWS, 8, 8, 32, 32);
|
||||
}
|
||||
|
||||
VIDEO_START_MEMBER(goldnpkr_state,wcrdxtnd)
|
||||
{
|
||||
m_bg_tilemap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(goldnpkr_state::wcrdxtnd_get_bg_tile_info),this), TILEMAP_SCAN_ROWS, 8, 8, 32, 32);
|
||||
m_bg_tilemap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(goldnpkr_state::wcrdxtnd_get_bg_tile_info),this), TILEMAP_SCAN_ROWS, 8, 8, 32, 32);
|
||||
}
|
||||
|
||||
UINT32 goldnpkr_state::screen_update_goldnpkr(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect)
|
||||
|
@ -75,7 +75,7 @@ TILE_GET_INFO_MEMBER(good_state::get_fg_tile_info)
|
||||
{
|
||||
int tileno = m_fg_tilemapram[tile_index * 2];
|
||||
int attr = m_fg_tilemapram[tile_index * 2 + 1] & 0xf;
|
||||
SET_TILE_INFO_MEMBER(m_gfxdecode, 0, tileno, attr, 0);
|
||||
SET_TILE_INFO_MEMBER(0, tileno, attr, 0);
|
||||
}
|
||||
|
||||
WRITE16_MEMBER(good_state::bg_tilemapram_w)
|
||||
@ -88,15 +88,15 @@ TILE_GET_INFO_MEMBER(good_state::get_bg_tile_info)
|
||||
{
|
||||
int tileno = m_bg_tilemapram[tile_index * 2];
|
||||
int attr = m_bg_tilemapram[tile_index * 2 + 1] & 0xf;
|
||||
SET_TILE_INFO_MEMBER(m_gfxdecode, 1, tileno, attr, 0);
|
||||
SET_TILE_INFO_MEMBER(1, tileno, attr, 0);
|
||||
}
|
||||
|
||||
|
||||
|
||||
void good_state::video_start()
|
||||
{
|
||||
m_bg_tilemap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(good_state::get_bg_tile_info),this), TILEMAP_SCAN_ROWS, 16, 16, 32, 32);
|
||||
m_fg_tilemap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(good_state::get_fg_tile_info),this), TILEMAP_SCAN_ROWS, 16, 16, 32, 32);
|
||||
m_bg_tilemap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(good_state::get_bg_tile_info),this), TILEMAP_SCAN_ROWS, 16, 16, 32, 32);
|
||||
m_fg_tilemap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(good_state::get_fg_tile_info),this), TILEMAP_SCAN_ROWS, 16, 16, 32, 32);
|
||||
m_fg_tilemap->set_transparent_pen(0xf);
|
||||
}
|
||||
|
||||
|
@ -256,28 +256,28 @@ TILE_GET_INFO_MEMBER( goodejan_state::seibucrtc_sc0_tile_info )
|
||||
int tile = m_sc0_vram[tile_index] & 0xfff;
|
||||
int color = (m_sc0_vram[tile_index] >> 12) & 0x0f;
|
||||
tile+=(m_seibucrtc_sc0bank<<12);
|
||||
SET_TILE_INFO_MEMBER(m_gfxdecode, 1, tile, color, 0);
|
||||
SET_TILE_INFO_MEMBER(1, tile, color, 0);
|
||||
}
|
||||
|
||||
TILE_GET_INFO_MEMBER( goodejan_state::seibucrtc_sc2_tile_info )
|
||||
{
|
||||
int tile = m_sc2_vram[tile_index] & 0xfff;
|
||||
int color = (m_sc2_vram[tile_index] >> 12) & 0x0f;
|
||||
SET_TILE_INFO_MEMBER(m_gfxdecode, 2, tile, color, 0);
|
||||
SET_TILE_INFO_MEMBER(2, tile, color, 0);
|
||||
}
|
||||
|
||||
TILE_GET_INFO_MEMBER( goodejan_state::seibucrtc_sc1_tile_info )
|
||||
{
|
||||
int tile = m_sc1_vram[tile_index] & 0xfff;
|
||||
int color = (m_sc1_vram[tile_index] >> 12) & 0x0f;
|
||||
SET_TILE_INFO_MEMBER(m_gfxdecode, 3, tile, color, 0);
|
||||
SET_TILE_INFO_MEMBER(3, tile, color, 0);
|
||||
}
|
||||
|
||||
TILE_GET_INFO_MEMBER( goodejan_state::seibucrtc_sc3_tile_info )
|
||||
{
|
||||
int tile = m_sc3_vram[tile_index] & 0xfff;
|
||||
int color = (m_sc3_vram[tile_index] >> 12) & 0x0f;
|
||||
SET_TILE_INFO_MEMBER(m_gfxdecode, 4, tile, color, 0);
|
||||
SET_TILE_INFO_MEMBER(4, tile, color, 0);
|
||||
}
|
||||
|
||||
void goodejan_state::draw_sprites(running_machine &machine, bitmap_ind16 &bitmap,const rectangle &cliprect,int pri)
|
||||
@ -322,10 +322,10 @@ void goodejan_state::draw_sprites(running_machine &machine, bitmap_ind16 &bitmap
|
||||
|
||||
void goodejan_state::video_start()
|
||||
{
|
||||
m_sc0_tilemap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(goodejan_state::seibucrtc_sc0_tile_info),this),TILEMAP_SCAN_ROWS,16,16,32,32);
|
||||
m_sc2_tilemap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(goodejan_state::seibucrtc_sc2_tile_info),this),TILEMAP_SCAN_ROWS,16,16,32,32);
|
||||
m_sc1_tilemap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(goodejan_state::seibucrtc_sc1_tile_info),this),TILEMAP_SCAN_ROWS,16,16,32,32);
|
||||
m_sc3_tilemap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(goodejan_state::seibucrtc_sc3_tile_info),this),TILEMAP_SCAN_ROWS,8,8,32,32);
|
||||
m_sc0_tilemap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(goodejan_state::seibucrtc_sc0_tile_info),this),TILEMAP_SCAN_ROWS,16,16,32,32);
|
||||
m_sc2_tilemap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(goodejan_state::seibucrtc_sc2_tile_info),this),TILEMAP_SCAN_ROWS,16,16,32,32);
|
||||
m_sc1_tilemap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(goodejan_state::seibucrtc_sc1_tile_info),this),TILEMAP_SCAN_ROWS,16,16,32,32);
|
||||
m_sc3_tilemap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(goodejan_state::seibucrtc_sc3_tile_info),this),TILEMAP_SCAN_ROWS,8,8,32,32);
|
||||
|
||||
m_sc2_tilemap->set_transparent_pen(15);
|
||||
m_sc1_tilemap->set_transparent_pen(15);
|
||||
|
@ -64,12 +64,12 @@ public:
|
||||
TILE_GET_INFO_MEMBER(headonb_state::get_headonb_tile_info)
|
||||
{
|
||||
UINT8 code = m_video_ram[tile_index];
|
||||
SET_TILE_INFO_MEMBER(m_gfxdecode, 0, code, 0, 0);
|
||||
SET_TILE_INFO_MEMBER(0, code, 0, 0);
|
||||
}
|
||||
|
||||
void headonb_state::video_start()
|
||||
{
|
||||
m_tilemap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(headonb_state::get_headonb_tile_info),this), TILEMAP_SCAN_ROWS, 8, 8, 32, 32);
|
||||
m_tilemap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(headonb_state::get_headonb_tile_info),this), TILEMAP_SCAN_ROWS, 8, 8, 32, 32);
|
||||
}
|
||||
|
||||
UINT32 headonb_state::screen_update_headonb(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect)
|
||||
|
@ -34,7 +34,7 @@ TILE_GET_INFO_MEMBER(hitme_state::get_hitme_tile_info)
|
||||
{
|
||||
/* the code is the low 6 bits */
|
||||
UINT8 code = m_videoram[tile_index] & 0x3f;
|
||||
SET_TILE_INFO_MEMBER(m_gfxdecode, 0, code, 0, 0);
|
||||
SET_TILE_INFO_MEMBER(0, code, 0, 0);
|
||||
}
|
||||
|
||||
|
||||
@ -55,13 +55,13 @@ WRITE8_MEMBER(hitme_state::hitme_vidram_w)
|
||||
|
||||
void hitme_state::video_start()
|
||||
{
|
||||
m_tilemap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(hitme_state::get_hitme_tile_info),this), TILEMAP_SCAN_ROWS, 8, 10, 40, 19);
|
||||
m_tilemap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(hitme_state::get_hitme_tile_info),this), TILEMAP_SCAN_ROWS, 8, 10, 40, 19);
|
||||
}
|
||||
|
||||
|
||||
VIDEO_START_MEMBER(hitme_state,barricad)
|
||||
{
|
||||
m_tilemap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(hitme_state::get_hitme_tile_info),this), TILEMAP_SCAN_ROWS, 8, 8, 32, 24);
|
||||
m_tilemap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(hitme_state::get_hitme_tile_info),this), TILEMAP_SCAN_ROWS, 8, 8, 32, 24);
|
||||
}
|
||||
|
||||
|
||||
|
@ -174,12 +174,12 @@ TILE_GET_INFO_MEMBER(hvyunit_state::get_bg_tile_info)
|
||||
int code = m_videoram[tile_index] + ((attr & 0x0f) << 8);
|
||||
int color = (attr >> 4);
|
||||
|
||||
SET_TILE_INFO_MEMBER(m_gfxdecode, 1, code, color, 0);
|
||||
SET_TILE_INFO_MEMBER(1, code, color, 0);
|
||||
}
|
||||
|
||||
void hvyunit_state::video_start()
|
||||
{
|
||||
m_bg_tilemap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(hvyunit_state::get_bg_tile_info),this), TILEMAP_SCAN_ROWS, 16, 16, 32, 32);
|
||||
m_bg_tilemap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(hvyunit_state::get_bg_tile_info),this), TILEMAP_SCAN_ROWS, 16, 16, 32, 32);
|
||||
}
|
||||
|
||||
UINT32 hvyunit_state::screen_update_hvyunit(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect)
|
||||
|
@ -118,8 +118,7 @@ TILE_GET_INFO_MEMBER(igs009_state::get_jingbell_reel1_tile_info)
|
||||
{
|
||||
int code = m_gp98_reel1_ram[tile_index];
|
||||
|
||||
SET_TILE_INFO_MEMBER(m_gfxdecode,
|
||||
0,
|
||||
SET_TILE_INFO_MEMBER(0,
|
||||
(code)+(((tile_index+1)&0x3)*0x100),
|
||||
(code & 0x80) ? 0xc : 0,
|
||||
0);
|
||||
@ -130,8 +129,7 @@ TILE_GET_INFO_MEMBER(igs009_state::get_gp98_reel1_tile_info)
|
||||
{
|
||||
int code = m_gp98_reel1_ram[tile_index];
|
||||
|
||||
SET_TILE_INFO_MEMBER(m_gfxdecode,
|
||||
0,
|
||||
SET_TILE_INFO_MEMBER(0,
|
||||
(code*4)+(tile_index&0x3),
|
||||
0,
|
||||
0);
|
||||
@ -148,8 +146,7 @@ TILE_GET_INFO_MEMBER(igs009_state::get_jingbell_reel2_tile_info)
|
||||
{
|
||||
int code = m_gp98_reel2_ram[tile_index];
|
||||
|
||||
SET_TILE_INFO_MEMBER(m_gfxdecode,
|
||||
0,
|
||||
SET_TILE_INFO_MEMBER(0,
|
||||
(code)+(((tile_index+1)&0x3)*0x100),
|
||||
(code & 0x80) ? 0xc : 0,
|
||||
0);
|
||||
@ -159,8 +156,7 @@ TILE_GET_INFO_MEMBER(igs009_state::get_gp98_reel2_tile_info)
|
||||
{
|
||||
int code = m_gp98_reel2_ram[tile_index];
|
||||
|
||||
SET_TILE_INFO_MEMBER(m_gfxdecode,
|
||||
0,
|
||||
SET_TILE_INFO_MEMBER(0,
|
||||
(code*4)+(tile_index&0x3),
|
||||
0,
|
||||
0);
|
||||
@ -178,8 +174,7 @@ TILE_GET_INFO_MEMBER(igs009_state::get_jingbell_reel3_tile_info)
|
||||
{
|
||||
int code = m_gp98_reel3_ram[tile_index];
|
||||
|
||||
SET_TILE_INFO_MEMBER(m_gfxdecode,
|
||||
0,
|
||||
SET_TILE_INFO_MEMBER(0,
|
||||
(code)+(((tile_index+1)&0x3)*0x100),
|
||||
(code & 0x80) ? 0xc : 0,
|
||||
0);
|
||||
@ -189,8 +184,7 @@ TILE_GET_INFO_MEMBER(igs009_state::get_gp98_reel3_tile_info)
|
||||
{
|
||||
int code = m_gp98_reel3_ram[tile_index];
|
||||
|
||||
SET_TILE_INFO_MEMBER(m_gfxdecode,
|
||||
0,
|
||||
SET_TILE_INFO_MEMBER(0,
|
||||
(code*4)+(tile_index&0x3),
|
||||
0,
|
||||
0);
|
||||
@ -208,8 +202,7 @@ TILE_GET_INFO_MEMBER(igs009_state::get_jingbell_reel4_tile_info)
|
||||
{
|
||||
int code = m_gp98_reel4_ram[tile_index];
|
||||
|
||||
SET_TILE_INFO_MEMBER(m_gfxdecode,
|
||||
0,
|
||||
SET_TILE_INFO_MEMBER(0,
|
||||
(code)+(((tile_index+1)&0x3)*0x100),
|
||||
(code & 0x80) ? 0xc : 0,
|
||||
0);
|
||||
@ -219,8 +212,7 @@ TILE_GET_INFO_MEMBER(igs009_state::get_gp98_reel4_tile_info)
|
||||
{
|
||||
int code = m_gp98_reel4_ram[tile_index];
|
||||
|
||||
SET_TILE_INFO_MEMBER(m_gfxdecode,
|
||||
0,
|
||||
SET_TILE_INFO_MEMBER(0,
|
||||
(code*4)+(tile_index&0x3),
|
||||
0,
|
||||
0);
|
||||
@ -242,7 +234,7 @@ WRITE8_MEMBER(igs009_state::bg_scroll_w)
|
||||
TILE_GET_INFO_MEMBER(igs009_state::get_fg_tile_info)
|
||||
{
|
||||
int code = m_fg_tile_ram[tile_index] | (m_fg_color_ram[tile_index] << 8);
|
||||
SET_TILE_INFO_MEMBER(m_gfxdecode, 1, code, (4*(code >> 14)+3), 0);
|
||||
SET_TILE_INFO_MEMBER(1, code, (4*(code >> 14)+3), 0);
|
||||
}
|
||||
|
||||
WRITE8_MEMBER(igs009_state::fg_tile_w)
|
||||
@ -259,13 +251,13 @@ WRITE8_MEMBER(igs009_state::fg_color_w)
|
||||
|
||||
void igs009_state::video_start()
|
||||
{
|
||||
m_fg_tilemap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(igs009_state::get_fg_tile_info),this), TILEMAP_SCAN_ROWS, 8, 8, 0x80,0x20);
|
||||
m_fg_tilemap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(igs009_state::get_fg_tile_info),this), TILEMAP_SCAN_ROWS, 8, 8, 0x80,0x20);
|
||||
m_fg_tilemap->set_transparent_pen(0);
|
||||
|
||||
m_gp98_reel1_tilemap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(igs009_state::get_jingbell_reel1_tile_info),this),TILEMAP_SCAN_ROWS,8,32, 128, 8);
|
||||
m_gp98_reel2_tilemap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(igs009_state::get_jingbell_reel2_tile_info),this),TILEMAP_SCAN_ROWS,8,32, 128, 8);
|
||||
m_gp98_reel3_tilemap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(igs009_state::get_jingbell_reel3_tile_info),this),TILEMAP_SCAN_ROWS,8,32, 128, 8);
|
||||
m_gp98_reel4_tilemap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(igs009_state::get_jingbell_reel4_tile_info),this),TILEMAP_SCAN_ROWS,8,32, 128, 8);
|
||||
m_gp98_reel1_tilemap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(igs009_state::get_jingbell_reel1_tile_info),this),TILEMAP_SCAN_ROWS,8,32, 128, 8);
|
||||
m_gp98_reel2_tilemap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(igs009_state::get_jingbell_reel2_tile_info),this),TILEMAP_SCAN_ROWS,8,32, 128, 8);
|
||||
m_gp98_reel3_tilemap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(igs009_state::get_jingbell_reel3_tile_info),this),TILEMAP_SCAN_ROWS,8,32, 128, 8);
|
||||
m_gp98_reel4_tilemap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(igs009_state::get_jingbell_reel4_tile_info),this),TILEMAP_SCAN_ROWS,8,32, 128, 8);
|
||||
|
||||
m_gp98_reel1_tilemap->set_scroll_cols(128);
|
||||
m_gp98_reel2_tilemap->set_scroll_cols(128);
|
||||
@ -276,13 +268,13 @@ void igs009_state::video_start()
|
||||
|
||||
VIDEO_START_MEMBER(igs009_state,gp98)
|
||||
{
|
||||
m_fg_tilemap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(igs009_state::get_fg_tile_info),this), TILEMAP_SCAN_ROWS, 8, 8, 0x80,0x20);
|
||||
m_fg_tilemap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(igs009_state::get_fg_tile_info),this), TILEMAP_SCAN_ROWS, 8, 8, 0x80,0x20);
|
||||
m_fg_tilemap->set_transparent_pen(0);
|
||||
|
||||
m_gp98_reel1_tilemap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(igs009_state::get_gp98_reel1_tile_info),this),TILEMAP_SCAN_ROWS,8,32, 128, 8);
|
||||
m_gp98_reel2_tilemap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(igs009_state::get_gp98_reel2_tile_info),this),TILEMAP_SCAN_ROWS,8,32, 128, 8);
|
||||
m_gp98_reel3_tilemap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(igs009_state::get_gp98_reel3_tile_info),this),TILEMAP_SCAN_ROWS,8,32, 128, 8);
|
||||
m_gp98_reel4_tilemap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(igs009_state::get_gp98_reel4_tile_info),this),TILEMAP_SCAN_ROWS,8,32, 128, 8);
|
||||
m_gp98_reel1_tilemap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(igs009_state::get_gp98_reel1_tile_info),this),TILEMAP_SCAN_ROWS,8,32, 128, 8);
|
||||
m_gp98_reel2_tilemap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(igs009_state::get_gp98_reel2_tile_info),this),TILEMAP_SCAN_ROWS,8,32, 128, 8);
|
||||
m_gp98_reel3_tilemap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(igs009_state::get_gp98_reel3_tile_info),this),TILEMAP_SCAN_ROWS,8,32, 128, 8);
|
||||
m_gp98_reel4_tilemap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(igs009_state::get_gp98_reel4_tile_info),this),TILEMAP_SCAN_ROWS,8,32, 128, 8);
|
||||
|
||||
m_gp98_reel1_tilemap->set_scroll_cols(128);
|
||||
m_gp98_reel2_tilemap->set_scroll_cols(128);
|
||||
|
@ -228,13 +228,13 @@ TILE_GET_INFO_MEMBER(igs017_state::get_fg_tile_info)
|
||||
{
|
||||
int code = m_fg_videoram[tile_index*4+0] + (m_fg_videoram[tile_index*4+1] << 8);
|
||||
int attr = m_fg_videoram[tile_index*4+2] + (m_fg_videoram[tile_index*4+3] << 8);
|
||||
SET_TILE_INFO_MEMBER(m_gfxdecode, 0, code, COLOR(attr), TILE_FLIPXY( attr >> 5 ));
|
||||
SET_TILE_INFO_MEMBER(0, code, COLOR(attr), TILE_FLIPXY( attr >> 5 ));
|
||||
}
|
||||
TILE_GET_INFO_MEMBER(igs017_state::get_bg_tile_info)
|
||||
{
|
||||
int code = m_bg_videoram[tile_index*4+0] + (m_bg_videoram[tile_index*4+1] << 8);
|
||||
int attr = m_bg_videoram[tile_index*4+2] + (m_bg_videoram[tile_index*4+3] << 8);
|
||||
SET_TILE_INFO_MEMBER(m_gfxdecode, 0, code, COLOR(attr)+8, TILE_FLIPXY( attr >> 5 ));
|
||||
SET_TILE_INFO_MEMBER(0, code, COLOR(attr)+8, TILE_FLIPXY( attr >> 5 ));
|
||||
}
|
||||
|
||||
WRITE8_MEMBER(igs017_state::fg_w)
|
||||
@ -306,8 +306,8 @@ void igs017_state::expand_sprites()
|
||||
|
||||
void igs017_state::video_start()
|
||||
{
|
||||
m_fg_tilemap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(igs017_state::get_fg_tile_info),this),TILEMAP_SCAN_ROWS,8,8,64,32);
|
||||
m_bg_tilemap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(igs017_state::get_bg_tile_info),this),TILEMAP_SCAN_ROWS,8,8,64,32);
|
||||
m_fg_tilemap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(igs017_state::get_fg_tile_info),this),TILEMAP_SCAN_ROWS,8,8,64,32);
|
||||
m_bg_tilemap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(igs017_state::get_bg_tile_info),this),TILEMAP_SCAN_ROWS,8,8,64,32);
|
||||
|
||||
m_fg_tilemap->set_transparent_pen(0xf);
|
||||
m_bg_tilemap->set_transparent_pen(0xf);
|
||||
|
@ -153,7 +153,7 @@ TILE_GET_INFO_MEMBER(igs_m027_state::get_tx_tilemap_tile_info)
|
||||
tileno = m_igs_tx_videoram[tile_index] & 0xffff;
|
||||
colour = (m_igs_tx_videoram[tile_index]>>0x10) & 0xffff;
|
||||
|
||||
SET_TILE_INFO_MEMBER(m_gfxdecode, 0,tileno,colour,0);
|
||||
SET_TILE_INFO_MEMBER(0,tileno,colour,0);
|
||||
}
|
||||
|
||||
/* BG Layer */
|
||||
@ -172,7 +172,7 @@ TILE_GET_INFO_MEMBER(igs_m027_state::get_bg_tilemap_tile_info)
|
||||
tileno = m_igs_bg_videoram[tile_index] & 0xffff;
|
||||
colour = (m_igs_bg_videoram[tile_index]>>0x10) & 0xffff;
|
||||
|
||||
SET_TILE_INFO_MEMBER(m_gfxdecode, 0,tileno,colour,0);
|
||||
SET_TILE_INFO_MEMBER(0,tileno,colour,0);
|
||||
}
|
||||
|
||||
|
||||
@ -191,10 +191,10 @@ WRITE32_MEMBER(igs_m027_state::igs_palette32_w)
|
||||
|
||||
void igs_m027_state::video_start()
|
||||
{
|
||||
m_igs_tx_tilemap= &machine().tilemap().create(tilemap_get_info_delegate(FUNC(igs_m027_state::get_tx_tilemap_tile_info),this),TILEMAP_SCAN_ROWS, 8, 8,64,32);
|
||||
m_igs_tx_tilemap= &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(igs_m027_state::get_tx_tilemap_tile_info),this),TILEMAP_SCAN_ROWS, 8, 8,64,32);
|
||||
m_igs_tx_tilemap->set_transparent_pen(15);
|
||||
m_igs_bg_tilemap= &machine().tilemap().create(tilemap_get_info_delegate(FUNC(igs_m027_state::get_bg_tilemap_tile_info),this),TILEMAP_SCAN_ROWS, 8, 8,64,32);
|
||||
//m_igs_bg_tilemap= &machine().tilemap().create(tilemap_get_info_delegate(FUNC(igs_m027_state::get_bg_tilemap_tile_info),this),TILEMAP_SCAN_ROWS, 8, 8,64,32);
|
||||
m_igs_bg_tilemap= &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(igs_m027_state::get_bg_tilemap_tile_info),this),TILEMAP_SCAN_ROWS, 8, 8,64,32);
|
||||
//m_igs_bg_tilemap= &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(igs_m027_state::get_bg_tilemap_tile_info),this),TILEMAP_SCAN_ROWS, 8, 8,64,32);
|
||||
//m_igs_bg_tilemap->set_transparent_pen(15);
|
||||
logerror("Video START OK!\n");
|
||||
}
|
||||
|
@ -169,14 +169,14 @@ WRITE8_MEMBER(igspoker_state::igs_irqack_w)
|
||||
TILE_GET_INFO_MEMBER(igspoker_state::get_bg_tile_info)
|
||||
{
|
||||
int code = m_bg_tile_ram[tile_index];
|
||||
SET_TILE_INFO_MEMBER(m_gfxdecode, 1 + (tile_index & 3), code, 0, 0);
|
||||
SET_TILE_INFO_MEMBER(1 + (tile_index & 3), code, 0, 0);
|
||||
}
|
||||
|
||||
TILE_GET_INFO_MEMBER(igspoker_state::get_fg_tile_info)
|
||||
{
|
||||
int code = m_fg_tile_ram[tile_index] | (m_fg_color_ram[tile_index] << 8);
|
||||
int tile = code & 0x1fff;
|
||||
SET_TILE_INFO_MEMBER(m_gfxdecode, 0, code, tile != 0x1fff ? ((code >> 12) & 0xe) + 1 : 0, 0);
|
||||
SET_TILE_INFO_MEMBER(0, code, tile != 0x1fff ? ((code >> 12) & 0xe) + 1 : 0, 0);
|
||||
}
|
||||
|
||||
WRITE8_MEMBER(igspoker_state::bg_tile_w)
|
||||
@ -199,8 +199,8 @@ WRITE8_MEMBER(igspoker_state::fg_color_w)
|
||||
|
||||
void igspoker_state::video_start()
|
||||
{
|
||||
m_fg_tilemap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(igspoker_state::get_fg_tile_info),this), TILEMAP_SCAN_ROWS, 8, 8, 64, 32);
|
||||
m_bg_tilemap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(igspoker_state::get_bg_tile_info),this), TILEMAP_SCAN_ROWS, 8, 32, 64, 8);
|
||||
m_fg_tilemap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(igspoker_state::get_fg_tile_info),this), TILEMAP_SCAN_ROWS, 8, 8, 64, 32);
|
||||
m_bg_tilemap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(igspoker_state::get_bg_tile_info),this), TILEMAP_SCAN_ROWS, 8, 32, 64, 8);
|
||||
|
||||
m_fg_tilemap->set_transparent_pen(0);
|
||||
}
|
||||
@ -219,7 +219,7 @@ UINT32 igspoker_state::screen_update_igs_video(screen_device &screen, bitmap_ind
|
||||
|
||||
VIDEO_START_MEMBER(igspoker_state,cpokerpk)
|
||||
{
|
||||
m_fg_tilemap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(igspoker_state::get_fg_tile_info),this), TILEMAP_SCAN_ROWS, 8, 8, 64, 32);
|
||||
m_fg_tilemap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(igspoker_state::get_fg_tile_info),this), TILEMAP_SCAN_ROWS, 8, 8, 64, 32);
|
||||
}
|
||||
|
||||
UINT32 igspoker_state::screen_update_cpokerpk(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect)
|
||||
|
@ -128,7 +128,7 @@ TILE_GET_INFO_MEMBER(jackie_state::get_fg_tile_info)
|
||||
{
|
||||
int code = m_fg_tile_ram[tile_index] | (m_fg_color_ram[tile_index] << 8);
|
||||
int tile = code & 0x1fff;
|
||||
SET_TILE_INFO_MEMBER(m_gfxdecode, 0, code, tile != 0x1fff ? ((code >> 12) & 0xe) + 1 : 0, 0);
|
||||
SET_TILE_INFO_MEMBER(0, code, tile != 0x1fff ? ((code >> 12) & 0xe) + 1 : 0, 0);
|
||||
}
|
||||
|
||||
WRITE8_MEMBER(jackie_state::fg_tile_w)
|
||||
@ -161,7 +161,7 @@ WRITE8_MEMBER(jackie_state::jackie_reel1_ram_w)
|
||||
TILE_GET_INFO_MEMBER(jackie_state::get_jackie_reel1_tile_info)
|
||||
{
|
||||
int code = m_reel1_ram[tile_index];
|
||||
SET_TILE_INFO_MEMBER(m_gfxdecode, 1, code, 0, 0);
|
||||
SET_TILE_INFO_MEMBER(1, code, 0, 0);
|
||||
}
|
||||
|
||||
|
||||
@ -175,7 +175,7 @@ WRITE8_MEMBER(jackie_state::jackie_reel2_ram_w)
|
||||
TILE_GET_INFO_MEMBER(jackie_state::get_jackie_reel2_tile_info)
|
||||
{
|
||||
int code = m_reel2_ram[tile_index];
|
||||
SET_TILE_INFO_MEMBER(m_gfxdecode, 1, code, 0, 0);
|
||||
SET_TILE_INFO_MEMBER(1, code, 0, 0);
|
||||
}
|
||||
|
||||
|
||||
@ -188,20 +188,20 @@ WRITE8_MEMBER(jackie_state::jackie_reel3_ram_w)
|
||||
TILE_GET_INFO_MEMBER(jackie_state::get_jackie_reel3_tile_info)
|
||||
{
|
||||
int code = m_reel3_ram[tile_index];
|
||||
SET_TILE_INFO_MEMBER(m_gfxdecode, 1, code, 0, 0);
|
||||
SET_TILE_INFO_MEMBER(1, code, 0, 0);
|
||||
}
|
||||
|
||||
void jackie_state::video_start()
|
||||
{
|
||||
m_reel1_tilemap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(jackie_state::get_jackie_reel1_tile_info),this),TILEMAP_SCAN_ROWS,8,32, 64, 8);
|
||||
m_reel2_tilemap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(jackie_state::get_jackie_reel2_tile_info),this),TILEMAP_SCAN_ROWS,8,32, 64, 8);
|
||||
m_reel3_tilemap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(jackie_state::get_jackie_reel3_tile_info),this),TILEMAP_SCAN_ROWS,8,32, 64, 8);
|
||||
m_reel1_tilemap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(jackie_state::get_jackie_reel1_tile_info),this),TILEMAP_SCAN_ROWS,8,32, 64, 8);
|
||||
m_reel2_tilemap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(jackie_state::get_jackie_reel2_tile_info),this),TILEMAP_SCAN_ROWS,8,32, 64, 8);
|
||||
m_reel3_tilemap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(jackie_state::get_jackie_reel3_tile_info),this),TILEMAP_SCAN_ROWS,8,32, 64, 8);
|
||||
|
||||
m_reel1_tilemap->set_scroll_cols(64);
|
||||
m_reel2_tilemap->set_scroll_cols(64);
|
||||
m_reel3_tilemap->set_scroll_cols(64);
|
||||
|
||||
m_fg_tilemap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(jackie_state::get_fg_tile_info),this), TILEMAP_SCAN_ROWS, 8, 8, 64, 32);
|
||||
m_fg_tilemap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(jackie_state::get_fg_tile_info),this), TILEMAP_SCAN_ROWS, 8, 8, 64, 32);
|
||||
m_fg_tilemap->set_transparent_pen(0);
|
||||
}
|
||||
|
||||
|
@ -279,8 +279,7 @@ TILEMAP_MAPPER_MEMBER(jalmah_state::range3_8x8)
|
||||
TILE_GET_INFO_MEMBER(jalmah_state::get_sc0_tile_info)
|
||||
{
|
||||
int code = m_sc0_vram[tile_index];
|
||||
SET_TILE_INFO_MEMBER(m_gfxdecode,
|
||||
3,
|
||||
SET_TILE_INFO_MEMBER(3,
|
||||
(code & 0xfff) + ((m_sc0bank & 3) << 12),
|
||||
code >> 12,
|
||||
0);
|
||||
@ -289,8 +288,7 @@ TILE_GET_INFO_MEMBER(jalmah_state::get_sc0_tile_info)
|
||||
TILE_GET_INFO_MEMBER(jalmah_state::get_sc1_tile_info)
|
||||
{
|
||||
int code = m_sc1_vram[tile_index];
|
||||
SET_TILE_INFO_MEMBER(m_gfxdecode,
|
||||
2,
|
||||
SET_TILE_INFO_MEMBER(2,
|
||||
code & 0xfff,
|
||||
code >> 12,
|
||||
0);
|
||||
@ -299,8 +297,7 @@ TILE_GET_INFO_MEMBER(jalmah_state::get_sc1_tile_info)
|
||||
TILE_GET_INFO_MEMBER(jalmah_state::get_sc2_tile_info)
|
||||
{
|
||||
int code = m_sc2_vram[tile_index];
|
||||
SET_TILE_INFO_MEMBER(m_gfxdecode,
|
||||
1,
|
||||
SET_TILE_INFO_MEMBER(1,
|
||||
code & 0xfff,
|
||||
code >> 12,
|
||||
0);
|
||||
@ -309,8 +306,7 @@ TILE_GET_INFO_MEMBER(jalmah_state::get_sc2_tile_info)
|
||||
TILE_GET_INFO_MEMBER(jalmah_state::get_sc3_tile_info)
|
||||
{
|
||||
int code = m_sc3_vram[tile_index];
|
||||
SET_TILE_INFO_MEMBER(m_gfxdecode,
|
||||
0,
|
||||
SET_TILE_INFO_MEMBER(0,
|
||||
code & 0xfff,
|
||||
code >> 12,
|
||||
0);
|
||||
@ -318,25 +314,25 @@ TILE_GET_INFO_MEMBER(jalmah_state::get_sc3_tile_info)
|
||||
|
||||
void jalmah_state::video_start()
|
||||
{
|
||||
m_sc0_tilemap_0 = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(jalmah_state::get_sc0_tile_info),this),tilemap_mapper_delegate(FUNC(jalmah_state::range0_16x16),this),16,16,256,32);
|
||||
m_sc0_tilemap_1 = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(jalmah_state::get_sc0_tile_info),this),tilemap_mapper_delegate(FUNC(jalmah_state::range1_16x16),this),16,16,128,64);
|
||||
m_sc0_tilemap_2 = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(jalmah_state::get_sc0_tile_info),this),tilemap_mapper_delegate(FUNC(jalmah_state::range2_16x16),this),16,16,64,128);
|
||||
m_sc0_tilemap_3 = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(jalmah_state::get_sc0_tile_info),this),tilemap_mapper_delegate(FUNC(jalmah_state::range3_16x16),this),16,16,32,256);
|
||||
m_sc0_tilemap_0 = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(jalmah_state::get_sc0_tile_info),this),tilemap_mapper_delegate(FUNC(jalmah_state::range0_16x16),this),16,16,256,32);
|
||||
m_sc0_tilemap_1 = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(jalmah_state::get_sc0_tile_info),this),tilemap_mapper_delegate(FUNC(jalmah_state::range1_16x16),this),16,16,128,64);
|
||||
m_sc0_tilemap_2 = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(jalmah_state::get_sc0_tile_info),this),tilemap_mapper_delegate(FUNC(jalmah_state::range2_16x16),this),16,16,64,128);
|
||||
m_sc0_tilemap_3 = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(jalmah_state::get_sc0_tile_info),this),tilemap_mapper_delegate(FUNC(jalmah_state::range3_16x16),this),16,16,32,256);
|
||||
|
||||
m_sc1_tilemap_0 = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(jalmah_state::get_sc1_tile_info),this),tilemap_mapper_delegate(FUNC(jalmah_state::range0_16x16),this),16,16,256,32);
|
||||
m_sc1_tilemap_1 = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(jalmah_state::get_sc1_tile_info),this),tilemap_mapper_delegate(FUNC(jalmah_state::range1_16x16),this),16,16,128,64);
|
||||
m_sc1_tilemap_2 = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(jalmah_state::get_sc1_tile_info),this),tilemap_mapper_delegate(FUNC(jalmah_state::range2_16x16),this),16,16,64,128);
|
||||
m_sc1_tilemap_3 = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(jalmah_state::get_sc1_tile_info),this),tilemap_mapper_delegate(FUNC(jalmah_state::range3_16x16),this),16,16,32,256);
|
||||
m_sc1_tilemap_0 = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(jalmah_state::get_sc1_tile_info),this),tilemap_mapper_delegate(FUNC(jalmah_state::range0_16x16),this),16,16,256,32);
|
||||
m_sc1_tilemap_1 = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(jalmah_state::get_sc1_tile_info),this),tilemap_mapper_delegate(FUNC(jalmah_state::range1_16x16),this),16,16,128,64);
|
||||
m_sc1_tilemap_2 = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(jalmah_state::get_sc1_tile_info),this),tilemap_mapper_delegate(FUNC(jalmah_state::range2_16x16),this),16,16,64,128);
|
||||
m_sc1_tilemap_3 = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(jalmah_state::get_sc1_tile_info),this),tilemap_mapper_delegate(FUNC(jalmah_state::range3_16x16),this),16,16,32,256);
|
||||
|
||||
m_sc2_tilemap_0 = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(jalmah_state::get_sc2_tile_info),this),tilemap_mapper_delegate(FUNC(jalmah_state::range0_16x16),this),16,16,256,32);
|
||||
m_sc2_tilemap_1 = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(jalmah_state::get_sc2_tile_info),this),tilemap_mapper_delegate(FUNC(jalmah_state::range1_16x16),this),16,16,128,64);
|
||||
m_sc2_tilemap_2 = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(jalmah_state::get_sc2_tile_info),this),tilemap_mapper_delegate(FUNC(jalmah_state::range2_16x16),this),16,16,64,128);
|
||||
m_sc2_tilemap_3 = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(jalmah_state::get_sc2_tile_info),this),tilemap_mapper_delegate(FUNC(jalmah_state::range3_16x16),this),16,16,32,256);
|
||||
m_sc2_tilemap_0 = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(jalmah_state::get_sc2_tile_info),this),tilemap_mapper_delegate(FUNC(jalmah_state::range0_16x16),this),16,16,256,32);
|
||||
m_sc2_tilemap_1 = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(jalmah_state::get_sc2_tile_info),this),tilemap_mapper_delegate(FUNC(jalmah_state::range1_16x16),this),16,16,128,64);
|
||||
m_sc2_tilemap_2 = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(jalmah_state::get_sc2_tile_info),this),tilemap_mapper_delegate(FUNC(jalmah_state::range2_16x16),this),16,16,64,128);
|
||||
m_sc2_tilemap_3 = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(jalmah_state::get_sc2_tile_info),this),tilemap_mapper_delegate(FUNC(jalmah_state::range3_16x16),this),16,16,32,256);
|
||||
|
||||
m_sc3_tilemap_0 = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(jalmah_state::get_sc3_tile_info),this),TILEMAP_SCAN_COLS,8,8,256,32);
|
||||
//m_sc3_tilemap_1 = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(jalmah_state::get_sc3_tile_info),this),TILEMAP_SCAN_COLS,8,8,256,32);
|
||||
m_sc3_tilemap_2 = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(jalmah_state::get_sc3_tile_info),this),tilemap_mapper_delegate(FUNC(jalmah_state::range2_8x8),this),8,8,128,64);
|
||||
m_sc3_tilemap_3 = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(jalmah_state::get_sc3_tile_info),this),tilemap_mapper_delegate(FUNC(jalmah_state::range3_8x8),this),8,8,64,128);
|
||||
m_sc3_tilemap_0 = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(jalmah_state::get_sc3_tile_info),this),TILEMAP_SCAN_COLS,8,8,256,32);
|
||||
//m_sc3_tilemap_1 = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(jalmah_state::get_sc3_tile_info),this),TILEMAP_SCAN_COLS,8,8,256,32);
|
||||
m_sc3_tilemap_2 = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(jalmah_state::get_sc3_tile_info),this),tilemap_mapper_delegate(FUNC(jalmah_state::range2_8x8),this),8,8,128,64);
|
||||
m_sc3_tilemap_3 = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(jalmah_state::get_sc3_tile_info),this),tilemap_mapper_delegate(FUNC(jalmah_state::range3_8x8),this),8,8,64,128);
|
||||
|
||||
m_jm_scrollram = auto_alloc_array(machine(), UINT16, 0x80/2);
|
||||
m_jm_vregs = auto_alloc_array(machine(), UINT16, 0x40/2);
|
||||
@ -364,8 +360,8 @@ void jalmah_state::video_start()
|
||||
|
||||
VIDEO_START_MEMBER(jalmah_state,urashima)
|
||||
{
|
||||
m_sc0_tilemap_0 = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(jalmah_state::get_sc0_tile_info),this),tilemap_mapper_delegate(FUNC(jalmah_state::range0_16x16),this),16,16,256,32);
|
||||
m_sc3_tilemap_0 = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(jalmah_state::get_sc3_tile_info),this),tilemap_mapper_delegate(FUNC(jalmah_state::range2_8x8),this),8,8,128,64);
|
||||
m_sc0_tilemap_0 = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(jalmah_state::get_sc0_tile_info),this),tilemap_mapper_delegate(FUNC(jalmah_state::range0_16x16),this),16,16,256,32);
|
||||
m_sc3_tilemap_0 = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(jalmah_state::get_sc3_tile_info),this),tilemap_mapper_delegate(FUNC(jalmah_state::range2_8x8),this),8,8,128,64);
|
||||
|
||||
m_jm_scrollram = auto_alloc_array(machine(), UINT16, 0x80/2);
|
||||
m_jm_vregs = auto_alloc_array(machine(), UINT16, 0x40/2);
|
||||
|
@ -167,14 +167,14 @@ TILE_GET_INFO_MEMBER(darkhors_state::get_tile_info_0)
|
||||
{
|
||||
UINT16 tile = m_tmapram[tile_index] >> 16;
|
||||
UINT16 color = m_tmapram[tile_index] & 0xffff;
|
||||
SET_TILE_INFO_MEMBER(m_gfxdecode, 0, tile/2, (color & 0x200) ? (color & 0x1ff) : ((color & 0x0ff) * 4) , 0);
|
||||
SET_TILE_INFO_MEMBER(0, tile/2, (color & 0x200) ? (color & 0x1ff) : ((color & 0x0ff) * 4) , 0);
|
||||
}
|
||||
|
||||
TILE_GET_INFO_MEMBER(darkhors_state::get_tile_info_1)
|
||||
{
|
||||
UINT16 tile = m_tmapram2[tile_index] >> 16;
|
||||
UINT16 color = m_tmapram2[tile_index] & 0xffff;
|
||||
SET_TILE_INFO_MEMBER(m_gfxdecode, 0, tile/2, (color & 0x200) ? (color & 0x1ff) : ((color & 0x0ff) * 4) , 0);
|
||||
SET_TILE_INFO_MEMBER(0, tile/2, (color & 0x200) ? (color & 0x1ff) : ((color & 0x0ff) * 4) , 0);
|
||||
}
|
||||
|
||||
WRITE32_MEMBER(darkhors_state::darkhors_tmapram_w)
|
||||
@ -224,8 +224,8 @@ void darkhors_state::draw_sprites_darkhors(bitmap_ind16 &bitmap, const rectangle
|
||||
|
||||
VIDEO_START_MEMBER(darkhors_state,darkhors)
|
||||
{
|
||||
m_tmap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(darkhors_state::get_tile_info_0),this), TILEMAP_SCAN_ROWS,16,16, 0x40,0x40);
|
||||
m_tmap2= &machine().tilemap().create(tilemap_get_info_delegate(FUNC(darkhors_state::get_tile_info_1),this), TILEMAP_SCAN_ROWS,16,16, 0x40,0x40);
|
||||
m_tmap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(darkhors_state::get_tile_info_0),this), TILEMAP_SCAN_ROWS,16,16, 0x40,0x40);
|
||||
m_tmap2= &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(darkhors_state::get_tile_info_1),this), TILEMAP_SCAN_ROWS,16,16, 0x40,0x40);
|
||||
m_tmap->set_transparent_pen(0);
|
||||
m_tmap2->set_transparent_pen(0);
|
||||
|
||||
|
@ -155,13 +155,13 @@ TILE_GET_INFO_MEMBER(jokrwild_state::get_bg_tile_info)
|
||||
int code = m_videoram[tile_index] | ((attr & 0xc0) << 2);
|
||||
int color = (attr & 0x0f);
|
||||
|
||||
SET_TILE_INFO_MEMBER(m_gfxdecode, 0, code , color , 0);
|
||||
SET_TILE_INFO_MEMBER(0, code , color , 0);
|
||||
}
|
||||
|
||||
|
||||
void jokrwild_state::video_start()
|
||||
{
|
||||
m_bg_tilemap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(jokrwild_state::get_bg_tile_info),this), TILEMAP_SCAN_ROWS, 8, 8, 24, 26);
|
||||
m_bg_tilemap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(jokrwild_state::get_bg_tile_info),this), TILEMAP_SCAN_ROWS, 8, 8, 24, 26);
|
||||
}
|
||||
|
||||
|
||||
|
@ -452,12 +452,12 @@ TILE_GET_INFO_MEMBER(jollyjgr_state::get_bg_tile_info)
|
||||
{
|
||||
int color = m_colorram[((tile_index & 0x1f) << 1) | 1] & 7;
|
||||
int region = (m_tilemap_bank & 0x20) ? 2 : 0;
|
||||
SET_TILE_INFO_MEMBER(m_gfxdecode, region, m_videoram[tile_index], color, 0);
|
||||
SET_TILE_INFO_MEMBER(region, m_videoram[tile_index], color, 0);
|
||||
}
|
||||
|
||||
void jollyjgr_state::video_start()
|
||||
{
|
||||
m_bg_tilemap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(jollyjgr_state::get_bg_tile_info),this), TILEMAP_SCAN_ROWS, 8, 8, 32, 32);
|
||||
m_bg_tilemap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(jollyjgr_state::get_bg_tile_info),this), TILEMAP_SCAN_ROWS, 8, 8, 32, 32);
|
||||
|
||||
m_bg_tilemap->set_transparent_pen(0);
|
||||
m_bg_tilemap->set_scroll_cols(32);
|
||||
|
@ -258,13 +258,13 @@ TILE_GET_INFO_MEMBER(jubilee_state::get_bg_tile_info)
|
||||
int bank = (attr & 0x03);
|
||||
int color = 0; /* fixed colors: one rom for each R, G and B. */
|
||||
|
||||
SET_TILE_INFO_MEMBER(m_gfxdecode, bank, code, color, 0);
|
||||
SET_TILE_INFO_MEMBER(bank, code, color, 0);
|
||||
}
|
||||
|
||||
|
||||
void jubilee_state::video_start()
|
||||
{
|
||||
m_bg_tilemap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(jubilee_state::get_bg_tile_info), this), TILEMAP_SCAN_ROWS, 8, 8, 32, 32);
|
||||
m_bg_tilemap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(jubilee_state::get_bg_tile_info), this), TILEMAP_SCAN_ROWS, 8, 8, 32, 32);
|
||||
m_bg_tilemap->set_scrolldx(8, 0); /* guess */
|
||||
}
|
||||
|
||||
|
@ -151,8 +151,7 @@ TILE_GET_INFO_MEMBER(kingdrby_state::get_sc0_tile_info)
|
||||
|
||||
tile&=0x1ff;
|
||||
|
||||
SET_TILE_INFO_MEMBER(m_gfxdecode,
|
||||
1,
|
||||
SET_TILE_INFO_MEMBER(1,
|
||||
tile,
|
||||
color|0x40,
|
||||
0);
|
||||
@ -168,8 +167,7 @@ TILE_GET_INFO_MEMBER(kingdrby_state::get_sc1_tile_info)
|
||||
//0x13
|
||||
//
|
||||
|
||||
SET_TILE_INFO_MEMBER(m_gfxdecode,
|
||||
1,
|
||||
SET_TILE_INFO_MEMBER(1,
|
||||
tile,
|
||||
color|0x40,
|
||||
0);
|
||||
@ -179,9 +177,9 @@ TILE_GET_INFO_MEMBER(kingdrby_state::get_sc1_tile_info)
|
||||
|
||||
void kingdrby_state::video_start()
|
||||
{
|
||||
m_sc0_tilemap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(kingdrby_state::get_sc0_tile_info),this),TILEMAP_SCAN_ROWS,8,8,32,24);
|
||||
m_sc1_tilemap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(kingdrby_state::get_sc1_tile_info),this),TILEMAP_SCAN_ROWS,8,8,32,24);
|
||||
m_sc0w_tilemap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(kingdrby_state::get_sc0_tile_info),this),TILEMAP_SCAN_ROWS,8,8,32,32);
|
||||
m_sc0_tilemap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(kingdrby_state::get_sc0_tile_info),this),TILEMAP_SCAN_ROWS,8,8,32,24);
|
||||
m_sc1_tilemap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(kingdrby_state::get_sc1_tile_info),this),TILEMAP_SCAN_ROWS,8,8,32,24);
|
||||
m_sc0w_tilemap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(kingdrby_state::get_sc0_tile_info),this),TILEMAP_SCAN_ROWS,8,8,32,32);
|
||||
|
||||
m_sc1_tilemap->set_transparent_pen(0);
|
||||
}
|
||||
|
@ -171,7 +171,7 @@ static MACHINE_CONFIG_START( klax, klax_state )
|
||||
MCFG_GFXDECODE_ADD("gfxdecode", klax)
|
||||
MCFG_PALETTE_ADD("palette", 512)
|
||||
|
||||
MCFG_TILEMAP_ADD_STANDARD("playfield", 2, klax_state, get_playfield_tile_info, 8,8, SCAN_COLS, 64,32)
|
||||
MCFG_TILEMAP_ADD_STANDARD("playfield", "gfxdecode", 2, klax_state, get_playfield_tile_info, 8,8, SCAN_COLS, 64,32)
|
||||
MCFG_ATARI_MOTION_OBJECTS_ADD("mob", "screen", klax_state::s_mob_config)
|
||||
MCFG_ATARI_MOTION_OBJECTS_GFXDECODE("gfxdecode")
|
||||
|
||||
|
@ -79,8 +79,7 @@ public:
|
||||
TILE_GET_INFO_MEMBER(koftball_state::get_t1_tile_info)
|
||||
{
|
||||
int data = m_bmc_1_videoram[tile_index];
|
||||
SET_TILE_INFO_MEMBER(m_gfxdecode,
|
||||
0,
|
||||
SET_TILE_INFO_MEMBER(0,
|
||||
data,
|
||||
0,
|
||||
0);
|
||||
@ -89,8 +88,7 @@ TILE_GET_INFO_MEMBER(koftball_state::get_t1_tile_info)
|
||||
TILE_GET_INFO_MEMBER(koftball_state::get_t2_tile_info)
|
||||
{
|
||||
int data = m_bmc_2_videoram[tile_index];
|
||||
SET_TILE_INFO_MEMBER(m_gfxdecode,
|
||||
0,
|
||||
SET_TILE_INFO_MEMBER(0,
|
||||
data,
|
||||
0,
|
||||
0);
|
||||
@ -98,8 +96,8 @@ TILE_GET_INFO_MEMBER(koftball_state::get_t2_tile_info)
|
||||
|
||||
void koftball_state::video_start()
|
||||
{
|
||||
m_tilemap_1 = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(koftball_state::get_t1_tile_info),this),TILEMAP_SCAN_ROWS,8,8,64,32);
|
||||
m_tilemap_2 = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(koftball_state::get_t2_tile_info),this),TILEMAP_SCAN_ROWS,8,8,64,32);
|
||||
m_tilemap_1 = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(koftball_state::get_t1_tile_info),this),TILEMAP_SCAN_ROWS,8,8,64,32);
|
||||
m_tilemap_2 = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(koftball_state::get_t2_tile_info),this),TILEMAP_SCAN_ROWS,8,8,64,32);
|
||||
|
||||
m_tilemap_1->set_transparent_pen(0);
|
||||
}
|
||||
|
@ -93,7 +93,7 @@ TILE_GET_INFO_MEMBER(koikoi_state::get_tile_info)
|
||||
int color = (m_videoram[tile_index + 0x400] & 0x1f);
|
||||
int flip = (m_videoram[tile_index + 0x400] & 0x80) ? (TILEMAP_FLIPX | TILEMAP_FLIPY) : 0;
|
||||
|
||||
SET_TILE_INFO_MEMBER(m_gfxdecode, 0, code, color, flip);
|
||||
SET_TILE_INFO_MEMBER(0, code, color, flip);
|
||||
}
|
||||
|
||||
PALETTE_INIT_MEMBER(koikoi_state, koikoi)
|
||||
@ -141,7 +141,7 @@ PALETTE_INIT_MEMBER(koikoi_state, koikoi)
|
||||
|
||||
void koikoi_state::video_start()
|
||||
{
|
||||
m_tmap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(koikoi_state::get_tile_info),this), TILEMAP_SCAN_ROWS, 8, 8, 32, 32);
|
||||
m_tmap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(koikoi_state::get_tile_info),this), TILEMAP_SCAN_ROWS, 8, 8, 32, 32);
|
||||
}
|
||||
|
||||
UINT32 koikoi_state::screen_update_koikoi(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect)
|
||||
|
@ -476,12 +476,12 @@ GFXDECODE_END
|
||||
TILE_GET_INFO_MEMBER(laserbat_state::get_tile_info)
|
||||
{
|
||||
// wrong color index!
|
||||
SET_TILE_INFO_MEMBER(m_gfxdecode, 0, m_videoram[tile_index], m_colorram[tile_index] & 0x7f, 0);
|
||||
SET_TILE_INFO_MEMBER(0, m_videoram[tile_index], m_colorram[tile_index] & 0x7f, 0);
|
||||
}
|
||||
|
||||
void laserbat_state::video_start()
|
||||
{
|
||||
m_bg_tilemap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(laserbat_state::get_tile_info),this), TILEMAP_SCAN_ROWS, 8, 8, 32, 32);
|
||||
m_bg_tilemap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(laserbat_state::get_tile_info),this), TILEMAP_SCAN_ROWS, 8, 8, 32, 32);
|
||||
|
||||
save_item(NAME(m_videoram));
|
||||
save_item(NAME(m_colorram));
|
||||
|
@ -120,21 +120,21 @@ TILE_GET_INFO_MEMBER(lbeach_state::get_bg_tile_info)
|
||||
// d6,d7: color
|
||||
UINT8 code = m_bg_vram[tile_index];
|
||||
|
||||
SET_TILE_INFO_MEMBER(m_gfxdecode, 1, code & 0x1f, code >> 6 & 3, 0);
|
||||
SET_TILE_INFO_MEMBER(1, code & 0x1f, code >> 6 & 3, 0);
|
||||
}
|
||||
|
||||
TILE_GET_INFO_MEMBER(lbeach_state::get_fg_tile_info)
|
||||
{
|
||||
UINT8 code = m_fg_vram[tile_index];
|
||||
|
||||
SET_TILE_INFO_MEMBER(m_gfxdecode, 0, code, 0, 0);
|
||||
SET_TILE_INFO_MEMBER(0, code, 0, 0);
|
||||
}
|
||||
|
||||
void lbeach_state::video_start()
|
||||
{
|
||||
m_bg_tilemap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(lbeach_state::get_bg_tile_info),this), TILEMAP_SCAN_ROWS, 16, 16, 32, 16);
|
||||
m_bg_tilemap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(lbeach_state::get_bg_tile_info),this), TILEMAP_SCAN_ROWS, 16, 16, 32, 16);
|
||||
|
||||
m_fg_tilemap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(lbeach_state::get_fg_tile_info),this), TILEMAP_SCAN_ROWS, 16, 8, 32, 32);
|
||||
m_fg_tilemap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(lbeach_state::get_fg_tile_info),this), TILEMAP_SCAN_ROWS, 16, 8, 32, 32);
|
||||
m_fg_tilemap->set_transparent_pen(0);
|
||||
|
||||
m_screen->register_screen_bitmap(m_colmap_car);
|
||||
|
@ -293,21 +293,21 @@ TILE_GET_INFO_MEMBER(limenko_state::get_bg_tile_info)
|
||||
{
|
||||
int tile = m_bg_videoram[tile_index] & 0x7ffff;
|
||||
int color = (m_bg_videoram[tile_index]>>28) & 0xf;
|
||||
SET_TILE_INFO_MEMBER(m_gfxdecode, 0,tile,color,0);
|
||||
SET_TILE_INFO_MEMBER(0,tile,color,0);
|
||||
}
|
||||
|
||||
TILE_GET_INFO_MEMBER(limenko_state::get_md_tile_info)
|
||||
{
|
||||
int tile = m_md_videoram[tile_index] & 0x7ffff;
|
||||
int color = (m_md_videoram[tile_index]>>28) & 0xf;
|
||||
SET_TILE_INFO_MEMBER(m_gfxdecode, 0,tile,color,0);
|
||||
SET_TILE_INFO_MEMBER(0,tile,color,0);
|
||||
}
|
||||
|
||||
TILE_GET_INFO_MEMBER(limenko_state::get_fg_tile_info)
|
||||
{
|
||||
int tile = m_fg_videoram[tile_index] & 0x7ffff;
|
||||
int color = (m_fg_videoram[tile_index]>>28) & 0xf;
|
||||
SET_TILE_INFO_MEMBER(m_gfxdecode, 0,tile,color,0);
|
||||
SET_TILE_INFO_MEMBER(0,tile,color,0);
|
||||
}
|
||||
|
||||
static void draw_single_sprite(bitmap_ind16 &dest_bmp,const rectangle &clip,gfx_element *gfx,
|
||||
@ -491,9 +491,9 @@ void limenko_state::copy_sprites(bitmap_ind16 &bitmap, bitmap_ind16 &sprites_bit
|
||||
|
||||
void limenko_state::video_start()
|
||||
{
|
||||
m_bg_tilemap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(limenko_state::get_bg_tile_info),this),TILEMAP_SCAN_ROWS,8,8,128,64);
|
||||
m_md_tilemap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(limenko_state::get_md_tile_info),this),TILEMAP_SCAN_ROWS,8,8,128,64);
|
||||
m_fg_tilemap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(limenko_state::get_fg_tile_info),this),TILEMAP_SCAN_ROWS,8,8,128,64);
|
||||
m_bg_tilemap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(limenko_state::get_bg_tile_info),this),TILEMAP_SCAN_ROWS,8,8,128,64);
|
||||
m_md_tilemap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(limenko_state::get_md_tile_info),this),TILEMAP_SCAN_ROWS,8,8,128,64);
|
||||
m_fg_tilemap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(limenko_state::get_fg_tile_info),this),TILEMAP_SCAN_ROWS,8,8,128,64);
|
||||
|
||||
m_md_tilemap->set_transparent_pen(0);
|
||||
m_fg_tilemap->set_transparent_pen(0);
|
||||
|
@ -219,13 +219,13 @@ TILE_GET_INFO_MEMBER(looping_state::get_tile_info)
|
||||
{
|
||||
int tile_number = m_videoram[tile_index];
|
||||
int color = m_colorram[(tile_index & 0x1f) * 2 + 1] & 0x07;
|
||||
SET_TILE_INFO_MEMBER(m_gfxdecode, 0, tile_number, color, 0);
|
||||
SET_TILE_INFO_MEMBER(0, tile_number, color, 0);
|
||||
}
|
||||
|
||||
|
||||
void looping_state::video_start()
|
||||
{
|
||||
m_bg_tilemap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(looping_state::get_tile_info),this), TILEMAP_SCAN_ROWS, 8,8, 32,32);
|
||||
m_bg_tilemap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(looping_state::get_tile_info),this), TILEMAP_SCAN_ROWS, 8,8, 32,32);
|
||||
|
||||
m_bg_tilemap->set_scroll_cols(0x20);
|
||||
}
|
||||
|
@ -53,12 +53,12 @@ TILE_GET_INFO_MEMBER(ltcasino_state::get_ltcasino_tile_info)
|
||||
|
||||
tileno += (colour & 0x80) << 1;
|
||||
|
||||
SET_TILE_INFO_MEMBER(m_gfxdecode, 0,tileno,0,0);
|
||||
SET_TILE_INFO_MEMBER(0,tileno,0,0);
|
||||
}
|
||||
|
||||
void ltcasino_state::video_start()
|
||||
{
|
||||
m_tilemap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(ltcasino_state::get_ltcasino_tile_info),this),TILEMAP_SCAN_ROWS,8, 8,64,32);
|
||||
m_tilemap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(ltcasino_state::get_ltcasino_tile_info),this),TILEMAP_SCAN_ROWS,8, 8,64,32);
|
||||
}
|
||||
|
||||
|
||||
|
@ -184,8 +184,7 @@ TILE_GET_INFO_MEMBER(luckgrln_state::get_luckgrln_reel1_tile_info)
|
||||
code |= (attr & 0xe0)<<3;
|
||||
|
||||
|
||||
SET_TILE_INFO_MEMBER(m_gfxdecode,
|
||||
1,
|
||||
SET_TILE_INFO_MEMBER(1,
|
||||
code,
|
||||
col,
|
||||
0);
|
||||
@ -214,8 +213,7 @@ TILE_GET_INFO_MEMBER(luckgrln_state::get_luckgrln_reel2_tile_info)
|
||||
code |= (attr & 0xe0)<<3;
|
||||
|
||||
|
||||
SET_TILE_INFO_MEMBER(m_gfxdecode,
|
||||
1,
|
||||
SET_TILE_INFO_MEMBER(1,
|
||||
code,
|
||||
col,
|
||||
0);
|
||||
@ -242,8 +240,7 @@ TILE_GET_INFO_MEMBER(luckgrln_state::get_luckgrln_reel3_tile_info)
|
||||
|
||||
code |= (attr & 0xe0)<<3;
|
||||
|
||||
SET_TILE_INFO_MEMBER(m_gfxdecode,
|
||||
1,
|
||||
SET_TILE_INFO_MEMBER(1,
|
||||
code,
|
||||
col,
|
||||
0);
|
||||
@ -270,8 +267,7 @@ TILE_GET_INFO_MEMBER(luckgrln_state::get_luckgrln_reel4_tile_info)
|
||||
|
||||
code |= (attr & 0xe0)<<3;
|
||||
|
||||
SET_TILE_INFO_MEMBER(m_gfxdecode,
|
||||
1,
|
||||
SET_TILE_INFO_MEMBER(1,
|
||||
code,
|
||||
col,
|
||||
0);
|
||||
@ -279,10 +275,10 @@ TILE_GET_INFO_MEMBER(luckgrln_state::get_luckgrln_reel4_tile_info)
|
||||
|
||||
void luckgrln_state::video_start()
|
||||
{
|
||||
m_reel1_tilemap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(luckgrln_state::get_luckgrln_reel1_tile_info),this),TILEMAP_SCAN_ROWS, 8, 32, 64, 8);
|
||||
m_reel2_tilemap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(luckgrln_state::get_luckgrln_reel2_tile_info),this),TILEMAP_SCAN_ROWS, 8, 32, 64, 8);
|
||||
m_reel3_tilemap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(luckgrln_state::get_luckgrln_reel3_tile_info),this),TILEMAP_SCAN_ROWS, 8, 32, 64, 8);
|
||||
m_reel4_tilemap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(luckgrln_state::get_luckgrln_reel4_tile_info),this),TILEMAP_SCAN_ROWS, 8, 32, 64, 8);
|
||||
m_reel1_tilemap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(luckgrln_state::get_luckgrln_reel1_tile_info),this),TILEMAP_SCAN_ROWS, 8, 32, 64, 8);
|
||||
m_reel2_tilemap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(luckgrln_state::get_luckgrln_reel2_tile_info),this),TILEMAP_SCAN_ROWS, 8, 32, 64, 8);
|
||||
m_reel3_tilemap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(luckgrln_state::get_luckgrln_reel3_tile_info),this),TILEMAP_SCAN_ROWS, 8, 32, 64, 8);
|
||||
m_reel4_tilemap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(luckgrln_state::get_luckgrln_reel4_tile_info),this),TILEMAP_SCAN_ROWS, 8, 32, 64, 8);
|
||||
|
||||
m_reel1_tilemap->set_scroll_cols(64);
|
||||
m_reel2_tilemap->set_scroll_cols(64);
|
||||
|
@ -127,8 +127,7 @@ TILE_GET_INFO_MEMBER(m14_state::m14_get_tile_info)
|
||||
|
||||
/* colorram & 0xf0 used but unknown purpose*/
|
||||
|
||||
SET_TILE_INFO_MEMBER(m_gfxdecode,
|
||||
0,
|
||||
SET_TILE_INFO_MEMBER(0,
|
||||
code,
|
||||
color,
|
||||
0);
|
||||
@ -136,7 +135,7 @@ TILE_GET_INFO_MEMBER(m14_state::m14_get_tile_info)
|
||||
|
||||
void m14_state::video_start()
|
||||
{
|
||||
m_m14_tilemap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(m14_state::m14_get_tile_info),this), TILEMAP_SCAN_ROWS, 8, 8, 32, 32);
|
||||
m_m14_tilemap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(m14_state::m14_get_tile_info),this), TILEMAP_SCAN_ROWS, 8, 8, 32, 32);
|
||||
}
|
||||
|
||||
UINT32 m14_state::screen_update_m14(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect)
|
||||
|
@ -307,20 +307,20 @@ TILE_GET_INFO_MEMBER(m63_state::get_bg_tile_info)
|
||||
int code = m_videoram[tile_index] | ((attr & 0x30) << 4);
|
||||
int color = (attr & 0x0f) + (m_pal_bank << 4);
|
||||
|
||||
SET_TILE_INFO_MEMBER(m_gfxdecode, 1, code, color, 0);
|
||||
SET_TILE_INFO_MEMBER(1, code, color, 0);
|
||||
}
|
||||
|
||||
TILE_GET_INFO_MEMBER(m63_state::get_fg_tile_info)
|
||||
{
|
||||
int code = m_videoram2[tile_index];
|
||||
|
||||
SET_TILE_INFO_MEMBER(m_gfxdecode, 0, code, 0, m_fg_flag);
|
||||
SET_TILE_INFO_MEMBER(0, code, 0, m_fg_flag);
|
||||
}
|
||||
|
||||
VIDEO_START_MEMBER(m63_state,m63)
|
||||
{
|
||||
m_bg_tilemap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(m63_state::get_bg_tile_info),this), TILEMAP_SCAN_ROWS, 8, 8, 32, 32);
|
||||
m_fg_tilemap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(m63_state::get_fg_tile_info),this), TILEMAP_SCAN_ROWS, 8, 8, 32, 32);
|
||||
m_bg_tilemap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(m63_state::get_bg_tile_info),this), TILEMAP_SCAN_ROWS, 8, 8, 32, 32);
|
||||
m_fg_tilemap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(m63_state::get_fg_tile_info),this), TILEMAP_SCAN_ROWS, 8, 8, 32, 32);
|
||||
|
||||
m_bg_tilemap->set_scroll_cols(32);
|
||||
m_fg_tilemap->set_transparent_pen(0);
|
||||
|
@ -163,46 +163,33 @@ WRITE16_MEMBER(magic10_state::paletteram_w)
|
||||
|
||||
TILE_GET_INFO_MEMBER(magic10_state::get_layer0_tile_info)
|
||||
{
|
||||
SET_TILE_INFO_MEMBER
|
||||
(
|
||||
m_gfxdecode,
|
||||
1,
|
||||
SET_TILE_INFO_MEMBER(1,
|
||||
m_layer0_videoram[tile_index * 2],
|
||||
m_layer0_videoram[tile_index * 2 + 1] & 0x0f,
|
||||
TILE_FLIPYX((m_layer0_videoram[tile_index * 2 + 1] & 0xc0) >> 6)
|
||||
);
|
||||
TILE_FLIPYX((m_layer0_videoram[tile_index * 2 + 1] & 0xc0) >> 6));
|
||||
}
|
||||
|
||||
TILE_GET_INFO_MEMBER(magic10_state::get_layer1_tile_info)
|
||||
{
|
||||
SET_TILE_INFO_MEMBER
|
||||
(
|
||||
m_gfxdecode,
|
||||
1,
|
||||
SET_TILE_INFO_MEMBER(1,
|
||||
m_layer1_videoram[tile_index * 2],
|
||||
m_layer1_videoram[tile_index * 2 + 1] & 0x0f,
|
||||
TILE_FLIPYX((m_layer1_videoram[tile_index * 2 + 1] & 0xc0) >> 6)
|
||||
);
|
||||
TILE_FLIPYX((m_layer1_videoram[tile_index * 2 + 1] & 0xc0) >> 6));
|
||||
}
|
||||
|
||||
TILE_GET_INFO_MEMBER(magic10_state::get_layer2_tile_info)
|
||||
{
|
||||
SET_TILE_INFO_MEMBER
|
||||
(
|
||||
m_gfxdecode,
|
||||
0,
|
||||
SET_TILE_INFO_MEMBER(0,
|
||||
m_layer2_videoram[tile_index * 2],
|
||||
m_layer2_videoram[tile_index * 2 + 1] & 0x0f,
|
||||
0
|
||||
);
|
||||
m_layer2_videoram[tile_index * 2 + 1] & 0x0f,0);
|
||||
}
|
||||
|
||||
|
||||
void magic10_state::video_start()
|
||||
{
|
||||
m_layer0_tilemap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(magic10_state::get_layer0_tile_info),this), TILEMAP_SCAN_ROWS, 16, 16, 32, 32);
|
||||
m_layer1_tilemap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(magic10_state::get_layer1_tile_info),this), TILEMAP_SCAN_ROWS, 16, 16, 32, 32);
|
||||
m_layer2_tilemap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(magic10_state::get_layer2_tile_info),this), TILEMAP_SCAN_ROWS, 8, 8, 64, 64);
|
||||
m_layer0_tilemap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(magic10_state::get_layer0_tile_info),this), TILEMAP_SCAN_ROWS, 16, 16, 32, 32);
|
||||
m_layer1_tilemap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(magic10_state::get_layer1_tile_info),this), TILEMAP_SCAN_ROWS, 16, 16, 32, 32);
|
||||
m_layer2_tilemap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(magic10_state::get_layer2_tile_info),this), TILEMAP_SCAN_ROWS, 8, 8, 64, 64);
|
||||
|
||||
m_layer1_tilemap->set_transparent_pen(0);
|
||||
m_layer2_tilemap->set_transparent_pen(0);
|
||||
|
@ -514,12 +514,12 @@ TILE_GET_INFO_MEMBER(magicfly_state::get_magicfly_tile_info)
|
||||
m_colorram[0] = m_colorram[0] | ((m_colorram[0] & 0x08) << 4); /* only for 1st offset */
|
||||
//m_colorram[tile_index] = attr | ((attr & 0x08) << 4); /* for the whole color RAM */
|
||||
|
||||
SET_TILE_INFO_MEMBER(m_gfxdecode, bank, code, color, 0);
|
||||
SET_TILE_INFO_MEMBER(bank, code, color, 0);
|
||||
}
|
||||
|
||||
void magicfly_state::video_start()
|
||||
{
|
||||
m_bg_tilemap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(magicfly_state::get_magicfly_tile_info),this), TILEMAP_SCAN_ROWS, 8, 8, 32, 29);
|
||||
m_bg_tilemap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(magicfly_state::get_magicfly_tile_info),this), TILEMAP_SCAN_ROWS, 8, 8, 32, 29);
|
||||
}
|
||||
|
||||
|
||||
@ -545,12 +545,12 @@ TILE_GET_INFO_MEMBER(magicfly_state::get_7mezzo_tile_info)
|
||||
m_colorram[0] = m_colorram[0] | ((m_colorram[0] & 0x04) << 5); /* only for 1st offset */
|
||||
//m_colorram[tile_index] = attr | ((attr & 0x04) << 5); /* for the whole color RAM */
|
||||
|
||||
SET_TILE_INFO_MEMBER(m_gfxdecode, bank, code, color, 0);
|
||||
SET_TILE_INFO_MEMBER(bank, code, color, 0);
|
||||
}
|
||||
|
||||
VIDEO_START_MEMBER(magicfly_state,7mezzo)
|
||||
{
|
||||
m_bg_tilemap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(magicfly_state::get_7mezzo_tile_info),this), TILEMAP_SCAN_ROWS, 8, 8, 32, 29);
|
||||
m_bg_tilemap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(magicfly_state::get_7mezzo_tile_info),this), TILEMAP_SCAN_ROWS, 8, 8, 32, 29);
|
||||
}
|
||||
|
||||
|
||||
|
@ -511,8 +511,7 @@ TILE_GET_INFO_MEMBER(majorpkr_state::bg_get_tile_info)
|
||||
{
|
||||
int code = m_videoram[0x800 + 2 * tile_index] + (m_videoram[0x800 + 2 * tile_index + 1] << 8);
|
||||
|
||||
SET_TILE_INFO_MEMBER(m_gfxdecode,
|
||||
0,
|
||||
SET_TILE_INFO_MEMBER(0,
|
||||
(code & 0x1fff),
|
||||
code >> 13,
|
||||
0);
|
||||
@ -522,8 +521,7 @@ TILE_GET_INFO_MEMBER(majorpkr_state::fg_get_tile_info)
|
||||
{
|
||||
int code = m_videoram[2 * tile_index] + (m_videoram[2 * tile_index + 1] << 8);
|
||||
|
||||
SET_TILE_INFO_MEMBER(m_gfxdecode,
|
||||
1,
|
||||
SET_TILE_INFO_MEMBER(1,
|
||||
(code & 0x07ff),
|
||||
code >> 13,
|
||||
(code & (1 << 12)) ? (TILE_FLIPX|TILE_FLIPY) : 0);
|
||||
@ -532,8 +530,8 @@ TILE_GET_INFO_MEMBER(majorpkr_state::fg_get_tile_info)
|
||||
|
||||
void majorpkr_state::video_start()
|
||||
{
|
||||
m_bg_tilemap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(majorpkr_state::bg_get_tile_info),this), TILEMAP_SCAN_ROWS, 16, 8, 36, 28);
|
||||
m_fg_tilemap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(majorpkr_state::fg_get_tile_info),this), TILEMAP_SCAN_ROWS, 16, 8, 36, 28);
|
||||
m_bg_tilemap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(majorpkr_state::bg_get_tile_info),this), TILEMAP_SCAN_ROWS, 16, 8, 36, 28);
|
||||
m_fg_tilemap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(majorpkr_state::fg_get_tile_info),this), TILEMAP_SCAN_ROWS, 16, 8, 36, 28);
|
||||
m_fg_tilemap->set_transparent_pen(0);
|
||||
|
||||
m_generic_paletteram_8.allocate(4 * 0x800);
|
||||
|
@ -493,12 +493,12 @@ TILE_GET_INFO_MEMBER(marinedt_state::get_tile_info)
|
||||
int color = 0;
|
||||
int flags = TILE_FLIPX;
|
||||
|
||||
SET_TILE_INFO_MEMBER(m_gfxdecode, 0, code, color, flags);
|
||||
SET_TILE_INFO_MEMBER(0, code, color, flags);
|
||||
}
|
||||
|
||||
void marinedt_state::video_start()
|
||||
{
|
||||
m_tx_tilemap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(marinedt_state::get_tile_info),this), TILEMAP_SCAN_ROWS, 8, 8, 32, 32);
|
||||
m_tx_tilemap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(marinedt_state::get_tile_info),this), TILEMAP_SCAN_ROWS, 8, 8, 32, 32);
|
||||
|
||||
m_tx_tilemap->set_transparent_pen(0);
|
||||
m_tx_tilemap->set_scrolldx(0, 4*8);
|
||||
|
@ -64,12 +64,12 @@ TILE_GET_INFO_MEMBER(mayumi_state::get_tile_info)
|
||||
int code = m_videoram[tile_index] + (m_videoram[tile_index + 0x800] & 0x1f) * 0x100;
|
||||
int col = (m_videoram[tile_index + 0x1000] >> 3) & 0x1f;
|
||||
|
||||
SET_TILE_INFO_MEMBER(m_gfxdecode, 0, code, col, 0);
|
||||
SET_TILE_INFO_MEMBER(0, code, col, 0);
|
||||
}
|
||||
|
||||
void mayumi_state::video_start()
|
||||
{
|
||||
m_tilemap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(mayumi_state::get_tile_info),this), TILEMAP_SCAN_ROWS, 8, 8, 64, 32);
|
||||
m_tilemap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(mayumi_state::get_tile_info),this), TILEMAP_SCAN_ROWS, 8, 8, 64, 32);
|
||||
}
|
||||
|
||||
WRITE8_MEMBER(mayumi_state::mayumi_videoram_w)
|
||||
|
@ -65,7 +65,7 @@ TILE_GET_INFO_MEMBER(mgolf_state::get_tile_info)
|
||||
{
|
||||
UINT8 code = m_video_ram[tile_index];
|
||||
|
||||
SET_TILE_INFO_MEMBER(m_gfxdecode, 0, code, code >> 7, 0);
|
||||
SET_TILE_INFO_MEMBER(0, code, code >> 7, 0);
|
||||
}
|
||||
|
||||
|
||||
@ -78,7 +78,7 @@ WRITE8_MEMBER(mgolf_state::mgolf_vram_w)
|
||||
|
||||
void mgolf_state::video_start()
|
||||
{
|
||||
m_bg_tilemap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(mgolf_state::get_tile_info),this), TILEMAP_SCAN_ROWS, 8, 8, 32, 32);
|
||||
m_bg_tilemap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(mgolf_state::get_tile_info),this), TILEMAP_SCAN_ROWS, 8, 8, 32, 32);
|
||||
}
|
||||
|
||||
|
||||
|
@ -99,14 +99,14 @@ public:
|
||||
TILE_GET_INFO_MEMBER(midas_state::get_tile_info)
|
||||
{
|
||||
UINT16 code = m_gfxram[ tile_index + 0x7000 ];
|
||||
SET_TILE_INFO_MEMBER(m_gfxdecode, 1, code & 0xfff, (code >> 12) & 0xf, TILE_FLIPXY( 0 ));
|
||||
SET_TILE_INFO_MEMBER(1, code & 0xfff, (code >> 12) & 0xf, TILE_FLIPXY( 0 ));
|
||||
}
|
||||
|
||||
void midas_state::video_start()
|
||||
{
|
||||
m_gfxram = auto_alloc_array(machine(), UINT16, 0x20000/2);
|
||||
|
||||
m_tmap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(midas_state::get_tile_info),this), TILEMAP_SCAN_COLS,8,8,0x80,0x20);
|
||||
m_tmap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(midas_state::get_tile_info),this), TILEMAP_SCAN_COLS,8,8,0x80,0x20);
|
||||
|
||||
m_tmap->set_transparent_pen(0);
|
||||
}
|
||||
|
@ -171,8 +171,7 @@ TILE_GET_INFO_MEMBER(mil4000_state::get_sc0_tile_info)
|
||||
int tile = data >> 14;
|
||||
int color = (m_sc0_vram[tile_index*2+1] & 0x1f)+0;
|
||||
|
||||
SET_TILE_INFO_MEMBER(m_gfxdecode,
|
||||
0,
|
||||
SET_TILE_INFO_MEMBER(0,
|
||||
tile,
|
||||
color,
|
||||
0);
|
||||
@ -184,8 +183,7 @@ TILE_GET_INFO_MEMBER(mil4000_state::get_sc1_tile_info)
|
||||
int tile = data >> 14;
|
||||
int color = (m_sc1_vram[tile_index*2+1] & 0x1f)+0x10;
|
||||
|
||||
SET_TILE_INFO_MEMBER(m_gfxdecode,
|
||||
0,
|
||||
SET_TILE_INFO_MEMBER(0,
|
||||
tile,
|
||||
color,
|
||||
0);
|
||||
@ -197,8 +195,7 @@ TILE_GET_INFO_MEMBER(mil4000_state::get_sc2_tile_info)
|
||||
int tile = data >> 14;
|
||||
int color = (m_sc2_vram[tile_index*2+1] & 0x1f)+0x20;
|
||||
|
||||
SET_TILE_INFO_MEMBER(m_gfxdecode,
|
||||
0,
|
||||
SET_TILE_INFO_MEMBER(0,
|
||||
tile,
|
||||
color,
|
||||
0);
|
||||
@ -210,8 +207,7 @@ TILE_GET_INFO_MEMBER(mil4000_state::get_sc3_tile_info)
|
||||
int tile = data >> 14;
|
||||
int color = (m_sc3_vram[tile_index*2+1] & 0x1f)+0x30;
|
||||
|
||||
SET_TILE_INFO_MEMBER(m_gfxdecode,
|
||||
0,
|
||||
SET_TILE_INFO_MEMBER(0,
|
||||
tile,
|
||||
color,
|
||||
0);
|
||||
@ -219,10 +215,10 @@ TILE_GET_INFO_MEMBER(mil4000_state::get_sc3_tile_info)
|
||||
|
||||
void mil4000_state::video_start()
|
||||
{
|
||||
m_sc0_tilemap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(mil4000_state::get_sc0_tile_info),this),TILEMAP_SCAN_ROWS,8,8,64,64);
|
||||
m_sc1_tilemap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(mil4000_state::get_sc1_tile_info),this),TILEMAP_SCAN_ROWS,8,8,64,64);
|
||||
m_sc2_tilemap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(mil4000_state::get_sc2_tile_info),this),TILEMAP_SCAN_ROWS,8,8,64,64);
|
||||
m_sc3_tilemap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(mil4000_state::get_sc3_tile_info),this),TILEMAP_SCAN_ROWS,8,8,64,64);
|
||||
m_sc0_tilemap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(mil4000_state::get_sc0_tile_info),this),TILEMAP_SCAN_ROWS,8,8,64,64);
|
||||
m_sc1_tilemap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(mil4000_state::get_sc1_tile_info),this),TILEMAP_SCAN_ROWS,8,8,64,64);
|
||||
m_sc2_tilemap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(mil4000_state::get_sc2_tile_info),this),TILEMAP_SCAN_ROWS,8,8,64,64);
|
||||
m_sc3_tilemap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(mil4000_state::get_sc3_tile_info),this),TILEMAP_SCAN_ROWS,8,8,64,64);
|
||||
|
||||
m_sc1_tilemap->set_transparent_pen(0);
|
||||
m_sc2_tilemap->set_transparent_pen(0);
|
||||
|
@ -208,12 +208,12 @@ TILE_GET_INFO_MEMBER(miniboy7_state::get_bg_tile_info)
|
||||
if (bank == 1) /* temporary hack to point to the 3rd gfx bank */
|
||||
bank = 2;
|
||||
|
||||
SET_TILE_INFO_MEMBER(m_gfxdecode, bank, code, color, 0);
|
||||
SET_TILE_INFO_MEMBER(bank, code, color, 0);
|
||||
}
|
||||
|
||||
void miniboy7_state::video_start()
|
||||
{
|
||||
m_bg_tilemap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(miniboy7_state::get_bg_tile_info),this), TILEMAP_SCAN_ROWS, 8, 8, 37, 37);
|
||||
m_bg_tilemap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(miniboy7_state::get_bg_tile_info),this), TILEMAP_SCAN_ROWS, 8, 8, 37, 37);
|
||||
}
|
||||
|
||||
UINT32 miniboy7_state::screen_update_miniboy7(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect)
|
||||
|
@ -75,8 +75,7 @@ TILE_GET_INFO_MEMBER(mogura_state::get_mogura_tile_info)
|
||||
int code = m_tileram[tile_index];
|
||||
int attr = m_tileram[tile_index + 0x800];
|
||||
|
||||
SET_TILE_INFO_MEMBER(m_gfxdecode,
|
||||
0,
|
||||
SET_TILE_INFO_MEMBER(0,
|
||||
code,
|
||||
(attr >> 1) & 7,
|
||||
0);
|
||||
@ -86,7 +85,7 @@ TILE_GET_INFO_MEMBER(mogura_state::get_mogura_tile_info)
|
||||
void mogura_state::video_start()
|
||||
{
|
||||
m_gfxdecode->gfx(0)->set_source(m_gfxram);
|
||||
m_tilemap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(mogura_state::get_mogura_tile_info),this), TILEMAP_SCAN_ROWS, 8, 8, 64, 32);
|
||||
m_tilemap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(mogura_state::get_mogura_tile_info),this), TILEMAP_SCAN_ROWS, 8, 8, 64, 32);
|
||||
}
|
||||
|
||||
UINT32 mogura_state::screen_update_mogura(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect)
|
||||
|
@ -100,13 +100,13 @@ TILE_GET_INFO_MEMBER(mole_state::get_bg_tile_info)
|
||||
{
|
||||
UINT16 code = m_tileram[tile_index];
|
||||
|
||||
SET_TILE_INFO_MEMBER(m_gfxdecode, (code & 0x200) ? 1 : 0, code & 0x1ff, 0, 0);
|
||||
SET_TILE_INFO_MEMBER((code & 0x200) ? 1 : 0, code & 0x1ff, 0, 0);
|
||||
}
|
||||
|
||||
void mole_state::video_start()
|
||||
{
|
||||
memset(m_tileram, 0, sizeof(m_tileram));
|
||||
m_bg_tilemap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(mole_state::get_bg_tile_info),this), TILEMAP_SCAN_ROWS, 8, 8, 40, 25);
|
||||
m_bg_tilemap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(mole_state::get_bg_tile_info),this), TILEMAP_SCAN_ROWS, 8, 8, 40, 25);
|
||||
|
||||
save_item(NAME(m_tileram));
|
||||
}
|
||||
|
@ -268,14 +268,14 @@ TILE_GET_INFO_MEMBER(mpu12wbk_state::get_bg_tile_info)
|
||||
// int code = m_videoram[tile_index] | ((attr & 0xc0) << 2);
|
||||
// int color = (attr & 0x0f);
|
||||
|
||||
// SET_TILE_INFO_MEMBER(m_gfxdecode, 0, code, color, 0);
|
||||
SET_TILE_INFO_MEMBER(m_gfxdecode, 0, 0 ,0 ,0);
|
||||
// SET_TILE_INFO_MEMBER(0, code, color, 0);
|
||||
SET_TILE_INFO_MEMBER(0, 0 ,0 ,0);
|
||||
}
|
||||
|
||||
|
||||
void mpu12wbk_state::video_start()
|
||||
{
|
||||
m_bg_tilemap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(mpu12wbk_state::get_bg_tile_info),this), TILEMAP_SCAN_ROWS, 8, 8, 32, 32);
|
||||
m_bg_tilemap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(mpu12wbk_state::get_bg_tile_info),this), TILEMAP_SCAN_ROWS, 8, 8, 32, 32);
|
||||
}
|
||||
|
||||
|
||||
|
@ -188,8 +188,7 @@ TILE_GET_INFO_MEMBER(igrosoft_gamble_state::get_igrosoft_gamble_tile_info)
|
||||
|
||||
tileinfo.category = (attr&0x100)>>8;
|
||||
|
||||
SET_TILE_INFO_MEMBER(m_gfxdecode,
|
||||
0,
|
||||
SET_TILE_INFO_MEMBER(0,
|
||||
code&0x1fff,
|
||||
attr&0x7,
|
||||
0);
|
||||
@ -199,8 +198,7 @@ TILE_GET_INFO_MEMBER(igrosoft_gamble_state::get_igrosoft_gamble_reel_tile_info)
|
||||
{
|
||||
int code = m_vid[tile_index*2+0x2000] | (m_vid[tile_index*2+0x2001] << 8);
|
||||
|
||||
SET_TILE_INFO_MEMBER(m_gfxdecode,
|
||||
0,
|
||||
SET_TILE_INFO_MEMBER(0,
|
||||
(code&0x1fff)+0x2000,
|
||||
(code>>14)+0x8,
|
||||
0);
|
||||
@ -211,10 +209,10 @@ void igrosoft_gamble_state::video_start()
|
||||
memset(m_vid,0x00,sizeof(m_vid));
|
||||
save_item(NAME(m_vid));
|
||||
|
||||
m_tilemap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(igrosoft_gamble_state::get_igrosoft_gamble_tile_info),this),TILEMAP_SCAN_ROWS,16,16, 64, 32);
|
||||
m_tilemap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(igrosoft_gamble_state::get_igrosoft_gamble_tile_info),this),TILEMAP_SCAN_ROWS,16,16, 64, 32);
|
||||
m_tilemap->set_transparent_pen(255);
|
||||
|
||||
m_reel_tilemap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(igrosoft_gamble_state::get_igrosoft_gamble_reel_tile_info),this),TILEMAP_SCAN_ROWS,16,16, 64, 64);
|
||||
m_reel_tilemap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(igrosoft_gamble_state::get_igrosoft_gamble_reel_tile_info),this),TILEMAP_SCAN_ROWS,16,16, 64, 64);
|
||||
m_reel_tilemap->set_transparent_pen(255);
|
||||
m_reel_tilemap->set_scroll_cols(64);
|
||||
}
|
||||
|
@ -367,7 +367,7 @@ TILE_GET_INFO_MEMBER(mwarr_state::get_bg_tile_info)
|
||||
int tileno = m_bg_videoram[tile_index] & 0x1fff;
|
||||
int colour = (m_bg_videoram[tile_index] & 0xe000) >> 13;
|
||||
|
||||
SET_TILE_INFO_MEMBER(m_gfxdecode, 4, tileno, colour, 0);
|
||||
SET_TILE_INFO_MEMBER(4, tileno, colour, 0);
|
||||
}
|
||||
|
||||
TILE_GET_INFO_MEMBER(mwarr_state::get_mlow_tile_info)
|
||||
@ -375,7 +375,7 @@ TILE_GET_INFO_MEMBER(mwarr_state::get_mlow_tile_info)
|
||||
int tileno = m_mlow_videoram[tile_index] & 0x1fff;
|
||||
int colour = (m_mlow_videoram[tile_index] & 0xe000) >> 13;
|
||||
|
||||
SET_TILE_INFO_MEMBER(m_gfxdecode, 3, tileno, colour, 0);
|
||||
SET_TILE_INFO_MEMBER(3, tileno, colour, 0);
|
||||
}
|
||||
|
||||
TILE_GET_INFO_MEMBER(mwarr_state::get_mhigh_tile_info)
|
||||
@ -383,7 +383,7 @@ TILE_GET_INFO_MEMBER(mwarr_state::get_mhigh_tile_info)
|
||||
int tileno = m_mhigh_videoram[tile_index] & 0x1fff;
|
||||
int colour = (m_mhigh_videoram[tile_index] & 0xe000) >> 13;
|
||||
|
||||
SET_TILE_INFO_MEMBER(m_gfxdecode, 2, tileno, colour, 0);
|
||||
SET_TILE_INFO_MEMBER(2, tileno, colour, 0);
|
||||
}
|
||||
|
||||
TILE_GET_INFO_MEMBER(mwarr_state::get_tx_tile_info)
|
||||
@ -391,15 +391,15 @@ TILE_GET_INFO_MEMBER(mwarr_state::get_tx_tile_info)
|
||||
int tileno = m_tx_videoram[tile_index] & 0x1fff;
|
||||
int colour = (m_tx_videoram[tile_index] & 0xe000) >> 13;
|
||||
|
||||
SET_TILE_INFO_MEMBER(m_gfxdecode, 1, tileno, colour, 0);
|
||||
SET_TILE_INFO_MEMBER(1, tileno, colour, 0);
|
||||
}
|
||||
|
||||
void mwarr_state::video_start()
|
||||
{
|
||||
m_bg_tilemap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(mwarr_state::get_bg_tile_info),this), TILEMAP_SCAN_COLS, 16, 16, 64, 16);
|
||||
m_mlow_tilemap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(mwarr_state::get_mlow_tile_info),this), TILEMAP_SCAN_COLS, 16, 16, 64, 16);
|
||||
m_mhigh_tilemap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(mwarr_state::get_mhigh_tile_info),this), TILEMAP_SCAN_COLS, 16, 16, 64, 16);
|
||||
m_tx_tilemap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(mwarr_state::get_tx_tile_info),this), TILEMAP_SCAN_ROWS, 8, 8, 64, 32);
|
||||
m_bg_tilemap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(mwarr_state::get_bg_tile_info),this), TILEMAP_SCAN_COLS, 16, 16, 64, 16);
|
||||
m_mlow_tilemap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(mwarr_state::get_mlow_tile_info),this), TILEMAP_SCAN_COLS, 16, 16, 64, 16);
|
||||
m_mhigh_tilemap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(mwarr_state::get_mhigh_tile_info),this), TILEMAP_SCAN_COLS, 16, 16, 64, 16);
|
||||
m_tx_tilemap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(mwarr_state::get_tx_tile_info),this), TILEMAP_SCAN_ROWS, 8, 8, 64, 32);
|
||||
|
||||
m_mlow_tilemap->set_transparent_pen(0);
|
||||
m_mhigh_tilemap->set_transparent_pen(0);
|
||||
|
@ -48,7 +48,7 @@ inline void namcos2_shared_state::namcoic_get_tile_info(tile_data &tileinfo,int
|
||||
int tile, mask;
|
||||
mTilemapInfo.cb( machine(), vram[tile_index], &tile, &mask );
|
||||
tileinfo.mask_data = mTilemapInfo.maskBaseAddr+mask*8;
|
||||
SET_TILE_INFO_MEMBER(m_gfxdecode, mTilemapInfo.gfxbank,tile,0,0);
|
||||
SET_TILE_INFO_MEMBER(mTilemapInfo.gfxbank,tile,0,0);
|
||||
} /* get_tile_info */
|
||||
|
||||
TILE_GET_INFO_MEMBER( namcos2_shared_state::get_tile_info0 ) { namcoic_get_tile_info(tileinfo,tile_index,&mTilemapInfo.videoram[0x0000]); }
|
||||
@ -68,14 +68,14 @@ void namcos2_shared_state::namco_tilemap_init( int gfxbank, void *maskBaseAddr,
|
||||
mTilemapInfo.videoram = auto_alloc_array(machine(), UINT16, 0x10000 );
|
||||
|
||||
/* four scrolling tilemaps */
|
||||
mTilemapInfo.tmap[0] = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(namcos2_shared_state::get_tile_info0),this),TILEMAP_SCAN_ROWS,8,8,64,64);
|
||||
mTilemapInfo.tmap[1] = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(namcos2_shared_state::get_tile_info1),this),TILEMAP_SCAN_ROWS,8,8,64,64);
|
||||
mTilemapInfo.tmap[2] = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(namcos2_shared_state::get_tile_info2),this),TILEMAP_SCAN_ROWS,8,8,64,64);
|
||||
mTilemapInfo.tmap[3] = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(namcos2_shared_state::get_tile_info3),this),TILEMAP_SCAN_ROWS,8,8,64,64);
|
||||
mTilemapInfo.tmap[0] = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(namcos2_shared_state::get_tile_info0),this),TILEMAP_SCAN_ROWS,8,8,64,64);
|
||||
mTilemapInfo.tmap[1] = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(namcos2_shared_state::get_tile_info1),this),TILEMAP_SCAN_ROWS,8,8,64,64);
|
||||
mTilemapInfo.tmap[2] = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(namcos2_shared_state::get_tile_info2),this),TILEMAP_SCAN_ROWS,8,8,64,64);
|
||||
mTilemapInfo.tmap[3] = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(namcos2_shared_state::get_tile_info3),this),TILEMAP_SCAN_ROWS,8,8,64,64);
|
||||
|
||||
/* two non-scrolling tilemaps */
|
||||
mTilemapInfo.tmap[4] = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(namcos2_shared_state::get_tile_info4),this),TILEMAP_SCAN_ROWS,8,8,36,28);
|
||||
mTilemapInfo.tmap[5] = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(namcos2_shared_state::get_tile_info5),this),TILEMAP_SCAN_ROWS,8,8,36,28);
|
||||
mTilemapInfo.tmap[4] = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(namcos2_shared_state::get_tile_info4),this),TILEMAP_SCAN_ROWS,8,8,36,28);
|
||||
mTilemapInfo.tmap[5] = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(namcos2_shared_state::get_tile_info5),this),TILEMAP_SCAN_ROWS,8,8,36,28);
|
||||
|
||||
/* define offsets for scrolling */
|
||||
for( i=0; i<4; i++ )
|
||||
@ -1014,7 +1014,7 @@ void namcos2_shared_state::c169_roz_get_info(tile_data &tileinfo, int tile_index
|
||||
tile &= 0x3fff; // cap mask offset
|
||||
break;
|
||||
}
|
||||
SET_TILE_INFO_MEMBER(m_gfxdecode, m_c169_roz_gfxbank, mangle, 0/*color*/, 0/*flag*/);
|
||||
SET_TILE_INFO_MEMBER(m_c169_roz_gfxbank, mangle, 0/*color*/, 0/*flag*/);
|
||||
tileinfo.mask_data = m_c169_roz_mask + 32*tile;
|
||||
}
|
||||
|
||||
@ -1043,13 +1043,13 @@ void namcos2_shared_state::c169_roz_init(int gfxbank, const char *maskregion)
|
||||
m_c169_roz_gfxbank = gfxbank;
|
||||
m_c169_roz_mask = memregion(maskregion)->base();
|
||||
|
||||
m_c169_roz_tilemap[0] = &machine().tilemap().create(
|
||||
m_c169_roz_tilemap[0] = &machine().tilemap().create(m_gfxdecode,
|
||||
tilemap_get_info_delegate(FUNC(namcos2_shared_state::c169_roz_get_info0), this),
|
||||
tilemap_mapper_delegate(FUNC(namcos2_shared_state::c169_roz_mapper), this),
|
||||
16,16,
|
||||
256,256);
|
||||
|
||||
m_c169_roz_tilemap[1] = &machine().tilemap().create(
|
||||
m_c169_roz_tilemap[1] = &machine().tilemap().create(m_gfxdecode,
|
||||
tilemap_get_info_delegate(FUNC(namcos2_shared_state::c169_roz_get_info1), this),
|
||||
tilemap_mapper_delegate(FUNC(namcos2_shared_state::c169_roz_mapper), this),
|
||||
16,16,
|
||||
@ -1446,7 +1446,7 @@ void namco_c45_road_device::device_start()
|
||||
m_gfxdecode->set_gfx(0, auto_alloc(machine(), gfx_element(machine(), s_tile_layout, 0x10000 + (UINT8 *)&m_ram[0], 0x3f, 0xf00)));
|
||||
|
||||
// create a tilemap for the road
|
||||
m_tilemap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(namco_c45_road_device::get_road_info), this),
|
||||
m_tilemap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(namco_c45_road_device::get_road_info), this),
|
||||
TILEMAP_SCAN_ROWS, ROAD_TILE_SIZE, ROAD_TILE_SIZE, ROAD_COLS, ROAD_ROWS);
|
||||
}
|
||||
|
||||
@ -1484,7 +1484,7 @@ TILE_GET_INFO_MEMBER( namco_c45_road_device::get_road_info )
|
||||
UINT16 data = m_ram[tile_index];
|
||||
int tile = data & 0x3ff;
|
||||
int color = data >> 10;
|
||||
SET_TILE_INFO_MEMBER(m_gfxdecode, 0, tile, color, 0);
|
||||
SET_TILE_INFO_MEMBER(0, tile, color, 0);
|
||||
}
|
||||
|
||||
//-------------------------------------------------
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user