even refresh, attempt 2

This commit is contained in:
msaarna@gmail.com 2020-06-09 09:21:42 -04:00
parent 076011af5a
commit c661f87db2

View file

@ -625,7 +625,10 @@ void screen_device::static_set_raw(device_t &device, u32 pixclock, u16 htotal, u
{
screen_device &screen = downcast<screen_device &>(device);
screen.m_clock = pixclock;
screen.m_refresh = HZ_TO_ATTOSECONDS(pixclock) * htotal * vtotal;
u32 fauxclock = pixclock;
fauxclock = (pixclock == 7159090) ? (htotal * vtotal * 60) : fauxclock; // round NTSC to 60Hz
fauxclock = (pixclock == 7093788) ? (htotal * vtotal * 50) : fauxclock; // round PAL to 50Hz
screen.m_refresh = HZ_TO_ATTOSECONDS(fauxclock) * htotal * vtotal;
screen.m_vblank = screen.m_refresh / vtotal * (vtotal - (vbstart - vbend));
screen.m_width = htotal;
screen.m_height = vtotal;