summaryrefslogtreecommitdiffstatshomepage
path: root/src/mess/video/nubus_m2video.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mess/video/nubus_m2video.c')
-rw-r--r--src/mess/video/nubus_m2video.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/src/mess/video/nubus_m2video.c b/src/mess/video/nubus_m2video.c
index 711a1dbfe33..5da60d0c475 100644
--- a/src/mess/video/nubus_m2video.c
+++ b/src/mess/video/nubus_m2video.c
@@ -66,14 +66,18 @@ const rom_entry *nubus_m2video_device::device_rom_region() const
nubus_m2video_device::nubus_m2video_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
device_t(mconfig, NUBUS_M2VIDEO, "Macintosh II Video Card", tag, owner, clock, "nb_m2vc", __FILE__),
+ device_video_interface(mconfig, *this),
device_nubus_card_interface(mconfig, *this)
{
+ m_screen_tag = M2VIDEO_SCREEN_NAME;
}
nubus_m2video_device::nubus_m2video_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source) :
device_t(mconfig, type, name, tag, owner, clock, shortname, source),
+ device_video_interface(mconfig, *this),
device_nubus_card_interface(mconfig, *this)
{
+ m_screen_tag = M2VIDEO_SCREEN_NAME;
}
//-------------------------------------------------
@@ -100,7 +104,7 @@ void nubus_m2video_device::device_start()
m_nubus->install_device(slotspace+0x80000, slotspace+0xeffff, read32_delegate(FUNC(nubus_m2video_device::m2video_r), this), write32_delegate(FUNC(nubus_m2video_device::m2video_w), this));
m_timer = timer_alloc(0, NULL);
- m_screen = NULL; // can we look this up now?
+ m_timer->adjust(m_screen->time_until_pos(479, 0), 0);
}
//-------------------------------------------------
@@ -143,13 +147,6 @@ UINT32 nubus_m2video_device::screen_update(screen_device &screen, bitmap_rgb32 &
int x, y;
UINT8 pixels, *vram;
- // first time? kick off the VBL timer
- if (!m_screen)
- {
- m_screen = &screen;
- m_timer->adjust(m_screen->time_until_pos(479, 0), 0);
- }
-
vram = m_vram + 0x20;
switch (m_mode)