x68k: further adjust vblank irq
Some checks failed
CI (Linux) / build-linux (-U_FORTIFY_SOURCE, gcc, gcc, g++, mametiny, tiny) (push) Has been cancelled
CI (Linux) / build-linux (clang, clang, clang++, mame, mame) (push) Has been cancelled
CI (macOS) / build-macos (push) Has been cancelled
CI (Windows) / build-windows (clang, clang, clang++, mametiny, tiny) (push) Has been cancelled
CI (Windows) / build-windows (gcc, gcc, g++, mame, mame) (push) Has been cancelled
XML/JSON validation / validate (push) Has been cancelled

This commit is contained in:
cracyc 2024-09-22 21:44:57 -05:00
parent a541421698
commit efa2fb25be

View file

@ -278,7 +278,7 @@ TIMER_CALLBACK_MEMBER(x68k_crtc_device::vblank_irq)
if (val == 0) // V-DISP off
{
m_vblank = 0;
vblank_line = m_vend + 1;
vblank_line = m_vend + (gfx_double_scan() ? 2 : 1);
if (vblank_line > m_vtotal)
vblank_line = m_vtotal;
irq_time = screen().time_until_pos(vblank_line, 2);