mirror of
https://github.com/7800-devtools/a7800.git
synced 2024-06-16 11:07:59 -04:00
even refresh, attempt 2
This commit is contained in:
parent
076011af5a
commit
c661f87db2
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue