summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/video/k051316.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/video/k051316.cpp')
-rw-r--r--src/mame/video/k051316.cpp21
1 files changed, 11 insertions, 10 deletions
diff --git a/src/mame/video/k051316.cpp b/src/mame/video/k051316.cpp
index 3e770b365ff..cd64d89ac64 100644
--- a/src/mame/video/k051316.cpp
+++ b/src/mame/video/k051316.cpp
@@ -105,14 +105,15 @@ GFXDECODE_END
k051316_device::k051316_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock)
- : device_t(mconfig, K051316, tag, owner, clock),
- device_gfx_interface(mconfig, *this, gfxinfo),
- m_zoom_rom(*this, DEVICE_SELF),
- m_dx(0),
- m_dy(0),
- m_wrap(0),
- m_pixels_per_byte(2), // 4bpp layout is default
- m_layermask(0)
+ : device_t(mconfig, K051316, tag, owner, clock)
+ , device_gfx_interface(mconfig, *this, gfxinfo)
+ , m_zoom_rom(*this, DEVICE_SELF)
+ , m_dx(0)
+ , m_dy(0)
+ , m_wrap(0)
+ , m_pixels_per_byte(2) // 4bpp layout is default
+ , m_layermask(0)
+ , m_k051316_cb(*this)
{
}
@@ -155,7 +156,7 @@ void k051316_device::device_start()
decode_gfx();
gfx(0)->set_colors(palette().entries() / gfx(0)->depth());
- m_tmap = &machine().tilemap().create(*this, tilemap_get_info_delegate(FUNC(k051316_device::get_tile_info),this), TILEMAP_SCAN_ROWS, 16, 16, 32, 32);
+ m_tmap = &machine().tilemap().create(*this, tilemap_get_info_delegate(*this, FUNC(k051316_device::get_tile_info)), TILEMAP_SCAN_ROWS, 16, 16, 32, 32);
m_ram.resize(0x800);
memset(&m_ram[0], 0, 0x800);
@@ -168,7 +169,7 @@ void k051316_device::device_start()
m_tmap->set_transparent_pen(0);
// bind callbacks
- m_k051316_cb.bind_relative_to(*owner());
+ m_k051316_cb.resolve();
save_item(NAME(m_ram));
save_item(NAME(m_ctrlram));