diff options
Diffstat (limited to 'src/mess/video/pds30_cb264.c')
-rw-r--r-- | src/mess/video/pds30_cb264.c | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/src/mess/video/pds30_cb264.c b/src/mess/video/pds30_cb264.c index 8b1af10f3a7..b4ee6282284 100644 --- a/src/mess/video/pds30_cb264.c +++ b/src/mess/video/pds30_cb264.c @@ -61,14 +61,18 @@ const rom_entry *nubus_cb264se30_device::device_rom_region() const nubus_cb264se30_device::nubus_cb264se30_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : device_t(mconfig, PDS030_CB264SE30, "RasterOps Colorboard 264/SE30", tag, owner, clock, "pd3_c264", __FILE__), + device_video_interface(mconfig, *this), device_nubus_card_interface(mconfig, *this) { + m_screen_tag = CB264SE30_SCREEN_NAME; } nubus_cb264se30_device::nubus_cb264se30_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 = CB264SE30_SCREEN_NAME; } //------------------------------------------------- @@ -94,7 +98,7 @@ void nubus_cb264se30_device::device_start() m_nubus->install_device(slotspace+0xf00000, slotspace+0xfeffff, read32_delegate(FUNC(nubus_cb264se30_device::cb264se30_r), this), write32_delegate(FUNC(nubus_cb264se30_device::cb264se30_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); } //------------------------------------------------- @@ -137,13 +141,6 @@ UINT32 nubus_cb264se30_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 + (8*1024); switch (m_mode) |