summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/video/wswan.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/video/wswan.cpp')
-rw-r--r--src/mame/video/wswan.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/mame/video/wswan.cpp b/src/mame/video/wswan.cpp
index 3787167960c..258925e2058 100644
--- a/src/mame/video/wswan.cpp
+++ b/src/mame/video/wswan.cpp
@@ -23,10 +23,16 @@ DEFINE_DEVICE_TYPE(WSWAN_VIDEO, wswan_video_device, "wswan_video", "Bandai Wonde
wswan_video_device::wswan_video_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock)
: device_t(mconfig, WSWAN_VIDEO, tag, owner, clock)
, device_video_interface(mconfig, *this)
+ , m_set_irq_cb(*this)
+ , m_snd_dma_cb(*this)
, m_vdp_type(VDP_TYPE_WSWAN)
{
}
+wswan_video_device::~wswan_video_device()
+{
+}
+
void wswan_video_device::common_save()
{
@@ -88,8 +94,8 @@ void wswan_video_device::device_start()
m_timer->adjust(attotime::from_ticks(256, 3072000), 0, attotime::from_ticks(256, 3072000));
// bind callbacks
- m_set_irq_cb.bind_relative_to(*owner());
- m_snd_dma_cb.bind_relative_to(*owner());
+ m_set_irq_cb.resolve();
+ m_snd_dma_cb.resolve();
if (m_vdp_type == VDP_TYPE_WSC)
{