mirror of
https://github.com/holub/mame
synced 2025-04-24 09:20:02 +03:00
fmtowns: fixed 16-bit color scrolling a bit more
After further testing, it seems Vain Dream uses the horizontal adjust registers in 16-bit color mode for a small part of the intro, and PR #2881 made it slightly worse. This should make both it and psydet5 display correctly.
This commit is contained in:
parent
4081eac990
commit
b39a95ba8f
@ -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