mirror of
https://github.com/holub/mame
synced 2025-04-26 18:23:08 +03:00
Merge pull request #2891 from rzero9/patch-5
fmtowns: fixed 16-bit color scrolling a bit more
This commit is contained in:
commit
e72b22a3b1
@ -959,7 +959,7 @@ void towns_state::towns_crtc_draw_scan_layer_hicolour(bitmap_rgb32 &bitmap,const
|
||||
off += scroll;
|
||||
}
|
||||
hzoom = ((m_video.towns_crtc_reg[27] & 0x0f00) >> 8) + 1;
|
||||
off += (m_video.towns_crtc_reg[11] - m_video.towns_crtc_reg[22]) * (hzoom * 2);
|
||||
off += (m_video.towns_crtc_reg[11] - m_video.towns_crtc_reg[22]) * (2 >> (hzoom - 1));
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -971,7 +971,7 @@ void towns_state::towns_crtc_draw_scan_layer_hicolour(bitmap_rgb32 &bitmap,const
|
||||
off += scroll;
|
||||
}
|
||||
hzoom = (m_video.towns_crtc_reg[27] & 0x000f) + 1;
|
||||
off += (m_video.towns_crtc_reg[9] - m_video.towns_crtc_reg[18]) * (hzoom * 2);
|
||||
off += (m_video.towns_crtc_reg[9] - m_video.towns_crtc_reg[18]) * (2 >> (hzoom - 1));
|
||||
}
|
||||
|
||||
off += line * linesize;
|
||||
|
Loading…
Reference in New Issue
Block a user