diff options
Diffstat (limited to 'src/mess/video/pds30_sigmalview.c')
-rw-r--r-- | src/mess/video/pds30_sigmalview.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/src/mess/video/pds30_sigmalview.c b/src/mess/video/pds30_sigmalview.c index 8942af434d3..6fcb2a86115 100644 --- a/src/mess/video/pds30_sigmalview.c +++ b/src/mess/video/pds30_sigmalview.c @@ -61,12 +61,14 @@ const rom_entry *nubus_lview_device::device_rom_region() const nubus_lview_device::nubus_lview_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : device_t(mconfig, PDS030_LVIEW, "Sigma Designs L-View", tag, owner, clock, "pd3_lviw", __FILE__), + device_video_interface(mconfig, *this), device_nubus_card_interface(mconfig, *this) { } nubus_lview_device::nubus_lview_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) { } @@ -95,7 +97,7 @@ void nubus_lview_device::device_start() m_nubus->install_device(slotspace+0xb0000, slotspace+0xbffff, read32_delegate(FUNC(nubus_lview_device::lview_r), this), write32_delegate(FUNC(nubus_lview_device::lview_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(599, 0), 0); } //------------------------------------------------- @@ -136,13 +138,6 @@ UINT32 nubus_lview_device::screen_update(screen_device &screen, bitmap_rgb32 &bi 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(599, 0), 0); - } - vram = m_vram + 0x20; for (y = 0; y < 600; y++) |