mirror of
https://github.com/holub/mame
synced 2025-07-04 17:38:08 +03:00
fmtowns: fix sprite gaps
This commit is contained in:
parent
5fe20586ee
commit
f3480fec67
@ -900,19 +900,19 @@ void towns_state::render_sprite_16(uint32_t poffset, uint16_t x, uint16_t y, boo
|
|||||||
if(xflip)
|
if(xflip)
|
||||||
{
|
{
|
||||||
if (xhalfsize)
|
if (xhalfsize)
|
||||||
xstart = x+8;
|
xstart = x+7;
|
||||||
else
|
else
|
||||||
xstart = x+16;
|
xstart = x+15;
|
||||||
xend = x;
|
xend = x-1;
|
||||||
xdir = -1;
|
xdir = -1;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
xstart = x+1;
|
xstart = x;
|
||||||
if (xhalfsize)
|
if (xhalfsize)
|
||||||
xend = x+9;
|
xend = x+8;
|
||||||
else
|
else
|
||||||
xend = x+17;
|
xend = x+16;
|
||||||
xdir = 1;
|
xdir = 1;
|
||||||
}
|
}
|
||||||
if(yflip)
|
if(yflip)
|
||||||
@ -1018,7 +1018,7 @@ TIMER_CALLBACK_MEMBER(towns_state::draw_sprites)
|
|||||||
poffset = (attr & 0x3ff) << 7;
|
poffset = (attr & 0x3ff) << 7;
|
||||||
coffset = (colour & 0xfff) << 5;
|
coffset = (colour & 0xfff) << 5;
|
||||||
#ifdef SPR_DEBUG
|
#ifdef SPR_DEBUG
|
||||||
printf("Sprite4 #%i, X %i Y %i Attr %04x Col %04x Poff %08x Coff %08x\n",
|
logerror("Sprite4 #%i, X %i Y %i Attr %04x Col %04x Poff %08x Coff %08x\n",
|
||||||
n,x,y,attr,colour,poffset,coffset);
|
n,x,y,attr,colour,poffset,coffset);
|
||||||
#endif
|
#endif
|
||||||
if(!(colour & 0x2000))
|
if(!(colour & 0x2000))
|
||||||
@ -1028,7 +1028,7 @@ TIMER_CALLBACK_MEMBER(towns_state::draw_sprites)
|
|||||||
{
|
{
|
||||||
poffset = (attr & 0x3ff) << 7;
|
poffset = (attr & 0x3ff) << 7;
|
||||||
#ifdef SPR_DEBUG
|
#ifdef SPR_DEBUG
|
||||||
printf("Sprite16 #%i, X %i Y %i Attr %04x Col %04x Poff %08x",
|
logerror("Sprite16 #%i, X %i Y %i Attr %04x Col %04x Poff %08x\n",
|
||||||
n,x,y,attr,colour,poffset);
|
n,x,y,attr,colour,poffset);
|
||||||
#endif
|
#endif
|
||||||
if(!(colour & 0x2000))
|
if(!(colour & 0x2000))
|
||||||
|
Loading…
Reference in New Issue
Block a user