summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author MooglyGuy <therealmogminer@gmail.com>2019-11-03 15:47:46 +0100
committer MooglyGuy <therealmogminer@gmail.com>2019-11-03 15:48:54 +0100
commitc9fa5d187c5ae84cace562e67dd18164a60fadee (patch)
tree730e9bcf76c34f8f18b1665ab027c749582e6313
parent5383dd355c745d64efebeddedd282a78e23d2336 (diff)
-snes_ppu: Fixed doubled-up frames on interlaced games, nw
-rw-r--r--src/devices/video/snes_ppu.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/devices/video/snes_ppu.cpp b/src/devices/video/snes_ppu.cpp
index 2142b59681f..43fbeeac74f 100644
--- a/src/devices/video/snes_ppu.cpp
+++ b/src/devices/video/snes_ppu.cpp
@@ -808,10 +808,11 @@ inline void snes_ppu_device::update_line( uint16_t curline, uint8_t layer_idx, u
uint32_t y = layer.mosaic_enabled ? layer.mosaic_offset : curline;
+ //printf("h:%d i:%d l:%d ", hires ? 1 : 0, m_interlace, curline);
if (hires)
{
hscroll <<= 1;
- if (m_interlace == 2) y = y << 1 | (m_stat78 >> 7);
+ if (m_interlace == 2) y = (y & ~1) | (m_stat78 >> 7);
}
uint32_t mosaic_counter = 1;