From 081ec944a651a5e700ad0df8e3dd6335c4a121a3 Mon Sep 17 00:00:00 2001 From: cracyc Date: Fri, 11 Jun 2021 09:27:55 -0500 Subject: x68k: seems pcg can set it's own vertical freq apart from the crtc --- src/mame/video/x68k.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mame/video/x68k.cpp b/src/mame/video/x68k.cpp index 2ac1a4e9e4a..8477d8cc040 100644 --- a/src/mame/video/x68k.cpp +++ b/src/mame/video/x68k.cpp @@ -510,7 +510,7 @@ void x68k_state::draw_sprites(bitmap_ind16 &bitmap, int priority, rectangle clip */ int ptr,pri; int divisor = 1; - if(!(m_video.bg_hvres & 0x0c) && m_crtc->gfx_double_scan()) + if((!(m_video.bg_hvres & 0x0c) && m_crtc->gfx_double_scan()) || ((m_video.bg_hvres & 0x1c) == 0x10 && m_crtc->vfactor() == 1)) divisor = 2; for(ptr=508;ptr>=0;ptr-=4) // stepping through sprites @@ -550,7 +550,7 @@ void x68k_state::draw_bg(bitmap_ind16 &bitmap, screen_device &screen, int layer, tilemap_t* x68k_bg1; tilemap_t* map; int divisor = 1; - if(!(m_video.bg_hvres & 0x0c) && m_crtc->gfx_double_scan()) + if((!(m_video.bg_hvres & 0x0c) && m_crtc->gfx_double_scan()) || ((m_video.bg_hvres & 0x1c) == 0x10 && m_crtc->vfactor() == 1)) divisor = 2; if((m_spritereg[0x408] & 0x03) == 0x00) // Sprite/BG H-Res 0=8x8, 1=16x16, 2 or 3 = undefined. @@ -751,7 +751,7 @@ uint32_t x68k_state::screen_update(screen_device &screen, bitmap_rgb32 &bitmap, { rectangle pcgrect = rect; int divisor = 1; - if(!(m_video.bg_hvres & 0x0c) && m_crtc->gfx_double_scan()) + if((!(m_video.bg_hvres & 0x0c) && m_crtc->gfx_double_scan()) || ((m_video.bg_hvres & 0x1c) == 0x10 && m_crtc->vfactor() == 1)) { pcgrect.max_y >>= 1; pcgrect.min_y >>= 1; -- cgit v1.2.3