diff options
Diffstat (limited to 'src/mame/video/fmtowns.cpp')
-rw-r--r-- | src/mame/video/fmtowns.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mame/video/fmtowns.cpp b/src/mame/video/fmtowns.cpp index 5d0f006a08a..e8e5464f287 100644 --- a/src/mame/video/fmtowns.cpp +++ b/src/mame/video/fmtowns.cpp @@ -107,15 +107,15 @@ void towns_state::towns_crtc_refresh_mode() // layer 0 m_video.towns_crtc_layerscr[0].min_x = m_video.towns_crtc_reg[9] - m_video.towns_crtc_reg[0]; - m_video.towns_crtc_layerscr[0].min_y = m_video.towns_crtc_reg[13] / 2; + m_video.towns_crtc_layerscr[0].min_y = (m_video.towns_crtc_reg[13] - m_video.towns_crtc_reg[6]) / 2; m_video.towns_crtc_layerscr[0].max_x = m_video.towns_crtc_reg[10] - m_video.towns_crtc_reg[0]; - m_video.towns_crtc_layerscr[0].max_y = m_video.towns_crtc_reg[14] / 2; + m_video.towns_crtc_layerscr[0].max_y = (m_video.towns_crtc_reg[14] - m_video.towns_crtc_reg[6]) / 2; // layer 1 m_video.towns_crtc_layerscr[1].min_x = m_video.towns_crtc_reg[11] - m_video.towns_crtc_reg[0]; - m_video.towns_crtc_layerscr[1].min_y = m_video.towns_crtc_reg[15] / 2; + m_video.towns_crtc_layerscr[1].min_y = (m_video.towns_crtc_reg[15] - m_video.towns_crtc_reg[6]) / 2; m_video.towns_crtc_layerscr[1].max_x = m_video.towns_crtc_reg[12] - m_video.towns_crtc_reg[0]; - m_video.towns_crtc_layerscr[1].max_y = m_video.towns_crtc_reg[16] / 2; + m_video.towns_crtc_layerscr[1].max_y = (m_video.towns_crtc_reg[16] - m_video.towns_crtc_reg[6]) / 2; // sanity checks if(scr.max_x == 0 || scr.max_y == 0) |