From dd87f81e1cafb5934a36b6849131db65c3d3f8b4 Mon Sep 17 00:00:00 2001 From: r09 Date: Mon, 13 Nov 2017 23:28:07 +0100 Subject: fmtowns: Fix scrolling in 16-color mode --- src/mame/video/fmtowns.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mame/video/fmtowns.cpp b/src/mame/video/fmtowns.cpp index 59a092dc6e1..30c27f5929d 100644 --- a/src/mame/video/fmtowns.cpp +++ b/src/mame/video/fmtowns.cpp @@ -1266,7 +1266,7 @@ void towns_state::towns_crtc_draw_scan_layer_16(bitmap_rgb32 &bitmap,const recta if(!(m_video.towns_video_reg[0] & 0x10)) return; if(!(m_video.towns_crtc_reg[28] & 0x10)) - off += m_video.towns_crtc_reg[21]; // initial offset + off += m_video.towns_crtc_reg[21] << 2; // initial offset else { scroll = ((m_video.towns_crtc_reg[21] & 0xfc00)<<2) | (((m_video.towns_crtc_reg[21] & 0x3ff)<<2)); @@ -1278,7 +1278,7 @@ void towns_state::towns_crtc_draw_scan_layer_16(bitmap_rgb32 &bitmap,const recta else { if(!(m_video.towns_crtc_reg[28] & 0x20)) - off += m_video.towns_crtc_reg[17]; // initial offset + off += m_video.towns_crtc_reg[17] << 2; // initial offset else { scroll = ((m_video.towns_crtc_reg[17] & 0xfc00)<<2) | (((m_video.towns_crtc_reg[17] & 0x3ff)<<2)); -- cgit v1.2.3