diff options
author | MooglyGuy <therealmogminer@gmail.com> | 2019-10-24 18:52:15 +0200 |
---|---|---|
committer | MooglyGuy <therealmogminer@gmail.com> | 2019-10-24 18:52:28 +0200 |
commit | 100767b3df9192de04b7df772360311f141c7eab (patch) | |
tree | f4e4d4818490aab670e64d60bc4e6480a420bb93 /src/mame/machine | |
parent | e0bac48f8fd4cab2ca16328a0b21efeeeafcf98b (diff) |
-screen: Added support for screens that vary horizontal width mid-frame, and hooked it up to the SNES driver. Fixes dkongcu intro and others. [Ryan Holtz]
Diffstat (limited to 'src/mame/machine')
-rw-r--r-- | src/mame/machine/snes.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mame/machine/snes.cpp b/src/mame/machine/snes.cpp index fac15ca7b75..a7c24950abf 100644 --- a/src/mame/machine/snes.cpp +++ b/src/mame/machine/snes.cpp @@ -235,7 +235,7 @@ TIMER_CALLBACK_MEMBER(snes_state::snes_hblank_tick) hdma(cpu0space); if (m_screen->vpos() > 0) - m_screen->update_partial((m_ppu->interlace() == 2) ? (m_ppu->current_vert() * m_ppu->interlace()) : m_ppu->current_vert()); + m_screen->update_partial((m_ppu->interlace() == 2) ? (m_ppu->current_vert() * m_ppu->interlace()) : m_ppu->current_vert() - 1); } // signal hblank @@ -1035,7 +1035,7 @@ void snes_state::snes_init_timers() // SNES hcounter has a 0-339 range. hblank starts at counter 260. // clayfighter sets an HIRQ at 260, apparently it wants it to be before hdma kicks off, so we'll delay 2 pixels. - m_hblank_offset = 128; + m_hblank_offset = 274; m_hblank_timer->adjust(m_screen->time_until_pos(m_ppu->vtotal() - 1, m_hblank_offset)); } |