diff options
Diffstat (limited to 'src/mame/video/dooyong.cpp')
-rw-r--r-- | src/mame/video/dooyong.cpp | 37 |
1 files changed, 18 insertions, 19 deletions
diff --git a/src/mame/video/dooyong.cpp b/src/mame/video/dooyong.cpp index baae9402616..e1d3986687a 100644 --- a/src/mame/video/dooyong.cpp +++ b/src/mame/video/dooyong.cpp @@ -35,14 +35,14 @@ dooyong_tilemap_device_base::dooyong_tilemap_device_base( { } -void dooyong_tilemap_device_base::static_set_gfxdecode_tag(device_t &device, char const *tag) +void dooyong_tilemap_device_base::set_gfxdecode_tag(char const *tag) { - downcast<dooyong_tilemap_device_base &>(device).m_gfxdecode.set_tag(tag); + m_gfxdecode.set_tag(tag); } -void dooyong_tilemap_device_base::static_set_gfxnum(device_t &device, int gfxnum) +void dooyong_tilemap_device_base::set_gfxnum(int gfxnum) { - downcast<dooyong_tilemap_device_base &>(device).m_gfxnum = gfxnum; + m_gfxnum = gfxnum; } void dooyong_tilemap_device_base::draw(screen_device &screen, bitmap_ind16 &dest, rectangle const &cliprect, uint32_t flags, uint8_t priority) @@ -83,27 +83,26 @@ dooyong_rom_tilemap_device::dooyong_rom_tilemap_device( { } -void dooyong_rom_tilemap_device::static_set_tilerom_tag(device_t &device, char const *tag) +void dooyong_rom_tilemap_device::set_tilerom_tag(char const *tag) { - downcast<dooyong_rom_tilemap_device &>(device).m_tilerom.set_tag(tag); + m_tilerom.set_tag(tag); } -void dooyong_rom_tilemap_device::static_set_tilerom_offset(device_t &device, int offset) +void dooyong_rom_tilemap_device::set_tilerom_offset(int offset) { - downcast<dooyong_rom_tilemap_device &>(device).m_tilerom_offset = offset; + m_tilerom_offset = offset; } -void dooyong_rom_tilemap_device::static_set_transparent_pen(device_t &device, unsigned pen) +void dooyong_rom_tilemap_device::set_transparent_pen(unsigned pen) { - downcast<dooyong_rom_tilemap_device &>(device).m_transparent_pen = pen; + m_transparent_pen = pen; } -void dooyong_rom_tilemap_device::static_set_primella_code_bits(device_t &device, unsigned bits) +void dooyong_rom_tilemap_device::set_primella_code_bits(unsigned bits) { - dooyong_rom_tilemap_device &tilemap_device(downcast<dooyong_rom_tilemap_device &>(device)); - tilemap_device.m_primella_code_mask = (1U << bits) - 1U; - tilemap_device.m_primella_color_mask = ((1U << 14) - 1) & ~tilemap_device.m_primella_code_mask; - tilemap_device.m_primella_color_shift = bits; + m_primella_code_mask = (1U << bits) - 1U; + m_primella_color_mask = ((1U << 14) - 1) & ~m_primella_code_mask; + m_primella_color_shift = bits; } WRITE8_MEMBER(dooyong_rom_tilemap_device::ctrl_w) @@ -211,14 +210,14 @@ rshark_rom_tilemap_device::rshark_rom_tilemap_device(machine_config const &mconf m_rows = 32; } -void rshark_rom_tilemap_device::static_set_colorrom_tag(device_t &device, char const *tag) +void rshark_rom_tilemap_device::set_colorrom_tag(char const *tag) { - downcast<rshark_rom_tilemap_device &>(device).m_colorrom.set_tag(tag); + m_colorrom.set_tag(tag); } -void rshark_rom_tilemap_device::static_set_colorrom_offset(device_t &device, int offset) +void rshark_rom_tilemap_device::set_colorrom_offset(int offset) { - downcast<rshark_rom_tilemap_device &>(device).m_colorrom_offset = offset; + m_colorrom_offset = offset; } void rshark_rom_tilemap_device::device_start() |