mirror of
https://github.com/holub/mame
synced 2025-04-23 00:39:36 +03:00
fmtowns: Fix scrolling in 16-color mode
This commit is contained in:
parent
65c4ad8e90
commit
dd87f81e1c
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user