summaryrefslogtreecommitdiffstatshomepage
path: root/src/mess/video/nubus_wsportrait.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mess/video/nubus_wsportrait.c')
-rw-r--r--src/mess/video/nubus_wsportrait.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/mess/video/nubus_wsportrait.c b/src/mess/video/nubus_wsportrait.c
index edaf558710b..b083a7b802b 100644
--- a/src/mess/video/nubus_wsportrait.c
+++ b/src/mess/video/nubus_wsportrait.c
@@ -68,14 +68,18 @@ const rom_entry *nubus_wsportrait_device::device_rom_region() const
nubus_wsportrait_device::nubus_wsportrait_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
device_t(mconfig, NUBUS_WSPORTRAIT, "Macintosh II Portrait Video Card", tag, owner, clock, "nb_wspt", __FILE__),
+ device_video_interface(mconfig, *this),
device_nubus_card_interface(mconfig, *this)
{
+ m_screen_tag = WSPORTRAIT_SCREEN_NAME;
}
nubus_wsportrait_device::nubus_wsportrait_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 = WSPORTRAIT_SCREEN_NAME;
}
//-------------------------------------------------
@@ -102,7 +106,7 @@ void nubus_wsportrait_device::device_start()
m_nubus->install_device(slotspace+0x80000, slotspace+0xeffff, read32_delegate(FUNC(nubus_wsportrait_device::wsportrait_r), this), write32_delegate(FUNC(nubus_wsportrait_device::wsportrait_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(869, 0), 0);
}
//-------------------------------------------------
@@ -143,12 +147,6 @@ UINT32 nubus_wsportrait_device::screen_update(screen_device &screen, bitmap_rgb3
UINT8 pixels, *vram;
// first time? kick off the VBL timer
- if (!m_screen)
- {
- m_screen = &screen;
- m_timer->adjust(m_screen->time_until_pos(869, 0), 0);
- }
-
vram = m_vram + 0x80;
switch (m_mode)