mirror of
https://github.com/holub/mame
synced 2025-05-25 15:25:33 +03:00
00827: wc90b1, wc90b2: On the Credit display screen, the PCB shows the upper part of the stadium
wc90b1 and wc90b2: fix fg and bg vertical scroll
This commit is contained in:
parent
9cb1e9d6f1
commit
f138b0635b
@ -140,10 +140,10 @@ static void draw_sprites(running_machine *machine, bitmap_t *bitmap, const recta
|
|||||||
|
|
||||||
VIDEO_UPDATE( wc90b )
|
VIDEO_UPDATE( wc90b )
|
||||||
{
|
{
|
||||||
tilemap_set_scrollx(bg_tilemap,0,8 * wc90b_scroll2x[0] + 256 - 4 + (wc90b_scroll_x_lo[0] & 0x07));
|
tilemap_set_scrollx(bg_tilemap,0,8 * (wc90b_scroll2x[0] & 0x7f) + 256 - 4 + (wc90b_scroll_x_lo[0] & 0x07));
|
||||||
tilemap_set_scrolly(bg_tilemap,0,wc90b_scroll2y[0] + 1 + ((wc90b_scroll2y[0] < 0x10 || wc90b_scroll2y[0] == 0xff) ? 256 : 0));
|
tilemap_set_scrolly(bg_tilemap,0,wc90b_scroll2y[0] + 1 + ((wc90b_scroll2x[0] & 0x80) ? 256 : 0));
|
||||||
tilemap_set_scrollx(fg_tilemap,0,8 * wc90b_scroll1x[0] + 256 - 6 + ((wc90b_scroll_x_lo[0] & 0x38) >> 3));
|
tilemap_set_scrollx(fg_tilemap,0,8 * (wc90b_scroll1x[0] & 0x7f) + 256 - 6 + ((wc90b_scroll_x_lo[0] & 0x38) >> 3));
|
||||||
tilemap_set_scrolly(fg_tilemap,0,wc90b_scroll1y[0] + 1 + ((wc90b_scroll1y[0] < 0x10 || wc90b_scroll1y[0] == 0xff) ? 256 : 0));
|
tilemap_set_scrolly(fg_tilemap,0,wc90b_scroll1y[0] + 1 + ((wc90b_scroll1x[0] & 0x80) ? 256 : 0));
|
||||||
|
|
||||||
tilemap_draw(bitmap,cliprect,bg_tilemap,0,0);
|
tilemap_draw(bitmap,cliprect,bg_tilemap,0,0);
|
||||||
tilemap_draw(bitmap,cliprect,fg_tilemap,0,0);
|
tilemap_draw(bitmap,cliprect,fg_tilemap,0,0);
|
||||||
|
Loading…
Reference in New Issue
Block a user