mirror of
https://github.com/holub/mame
synced 2025-07-04 09:28:51 +03:00
Fixed sprite wrap-around y in Irem M107 HW [Angelo Salese]
This commit is contained in:
parent
016da19c55
commit
1b4120325f
@ -205,6 +205,14 @@ static void draw_sprites(running_machine *machine, bitmap_t *bitmap, const recta
|
|||||||
colour,
|
colour,
|
||||||
fx,fy,
|
fx,fy,
|
||||||
x,y-i*16,0);
|
x,y-i*16,0);
|
||||||
|
|
||||||
|
/* wrap-around y */
|
||||||
|
drawgfx_transpen(bitmap,cliprect,machine->gfx[1],
|
||||||
|
sprite + s_ptr,
|
||||||
|
colour,
|
||||||
|
fx,fy,
|
||||||
|
x,(y-i*16) - 0x200,0);
|
||||||
|
|
||||||
if (fy) s_ptr++; else s_ptr--;
|
if (fy) s_ptr++; else s_ptr--;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -232,6 +240,13 @@ static void draw_sprites(running_machine *machine, bitmap_t *bitmap, const recta
|
|||||||
colour,
|
colour,
|
||||||
ffx,ffy,
|
ffx,ffy,
|
||||||
(x+xdisp)&0x1ff,(y-ydisp-16*i)&0x1ff,0);
|
(x+xdisp)&0x1ff,(y-ydisp-16*i)&0x1ff,0);
|
||||||
|
|
||||||
|
/* wrap-around y */
|
||||||
|
drawgfx_transpen(bitmap,cliprect,machine->gfx[1],
|
||||||
|
sprite+(ffy?i:-i),
|
||||||
|
colour,
|
||||||
|
ffx,ffy,
|
||||||
|
(x+xdisp)&0x1ff,((y-ydisp-16*i)&0x1ff)-0x200,0);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (rom[rom_offs+1]&0x80) break; /* end of block */
|
if (rom[rom_offs+1]&0x80) break; /* end of block */
|
||||||
|
Loading…
Reference in New Issue
Block a user