summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/video
diff options
context:
space:
mode:
author AJR <ajrhacker@users.noreply.github.com>2019-10-15 02:09:30 -0400
committer AJR <ajrhacker@users.noreply.github.com>2019-10-15 02:09:30 -0400
commitd9905f3d0314dcde2017d7b6b6840d08cd2b89f1 (patch)
tree84d15ac035d4bfd1028bfceec88c63da954bc7cf /src/devices/video
parent0a72dcb2e09e1d544499b32221443d3752208a82 (diff)
sed1330: Calculate frame rate for LCD screen (nw)
pc8401a: Derive clocks from XTAL (might well be different for pc8500, so not used there) (nw)
Diffstat (limited to 'src/devices/video')
-rw-r--r--src/devices/video/sed1330.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/devices/video/sed1330.cpp b/src/devices/video/sed1330.cpp
index 862c0ba675b..40027444684 100644
--- a/src/devices/video/sed1330.cpp
+++ b/src/devices/video/sed1330.cpp
@@ -8,6 +8,7 @@
#include "emu.h"
#include "sed1330.h"
+#include "screen.h"
//#define VERBOSE 1
#include "logmacro.h"
@@ -383,6 +384,12 @@ WRITE8_MEMBER( sed1330_device::data_w )
case 5:
m_lf = data + 1;
LOG("SED1330 Frame Height: %u\n", m_lf);
+ if (clock() != 0)
+ {
+ attotime fr = clocks_to_attotime(m_tcr * m_lf * 9);
+ screen().configure(m_tcr * m_fx, m_lf, screen().visible_area(), fr.as_attoseconds());
+ LOG("SED1330 Frame Rate: %.1f Hz\n", fr.as_hz());
+ }
break;
case 6: