From 45d4cd52a8194f2ef9e0383cfb2e2a35634af6ff Mon Sep 17 00:00:00 2001 From: Olivier Galibert Date: Thu, 16 Jun 2022 12:47:52 +0200 Subject: full xtal conversion --- src/devices/video/sed1330.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/devices/video/sed1330.cpp') diff --git a/src/devices/video/sed1330.cpp b/src/devices/video/sed1330.cpp index 37d95caac7b..0e03ed4d428 100644 --- a/src/devices/video/sed1330.cpp +++ b/src/devices/video/sed1330.cpp @@ -148,7 +148,7 @@ inline void sed1330_device::increment_csr() // sed1330_device - constructor //------------------------------------------------- -sed1330_device::sed1330_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) +sed1330_device::sed1330_device(const machine_config &mconfig, const char *tag, device_t *owner, const XTAL &clock) : device_t(mconfig, SED1330, tag, owner, clock), device_memory_interface(mconfig, *this), device_video_interface(mconfig, *this), @@ -384,7 +384,7 @@ void sed1330_device::data_w(uint8_t data) case 5: m_lf = data + 1; LOG("SED1330 Frame Height: %u\n", m_lf); - if (clock() != 0) + if (!clock().disabled()) { attotime fr = clocks_to_attotime(m_tcr * m_lf * 9); screen().configure(m_tcr * m_fx, m_lf, screen().visible_area(), fr.as_attoseconds()); -- cgit v1.2.3-70-g09d2