From f3480fec67978a39ae804ee1ae686be735a46439 Mon Sep 17 00:00:00 2001 From: cracyc Date: Sun, 23 May 2021 10:57:26 -0500 Subject: fmtowns: fix sprite gaps --- src/mame/video/fmtowns.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/mame/video/fmtowns.cpp b/src/mame/video/fmtowns.cpp index 7ded2586296..2235e03897c 100644 --- a/src/mame/video/fmtowns.cpp +++ b/src/mame/video/fmtowns.cpp @@ -900,19 +900,19 @@ void towns_state::render_sprite_16(uint32_t poffset, uint16_t x, uint16_t y, boo if(xflip) { if (xhalfsize) - xstart = x+8; + xstart = x+7; else - xstart = x+16; - xend = x; + xstart = x+15; + xend = x-1; xdir = -1; } else { - xstart = x+1; + xstart = x; if (xhalfsize) - xend = x+9; + xend = x+8; else - xend = x+17; + xend = x+16; xdir = 1; } if(yflip) @@ -1018,7 +1018,7 @@ TIMER_CALLBACK_MEMBER(towns_state::draw_sprites) poffset = (attr & 0x3ff) << 7; coffset = (colour & 0xfff) << 5; #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); #endif if(!(colour & 0x2000)) @@ -1028,7 +1028,7 @@ TIMER_CALLBACK_MEMBER(towns_state::draw_sprites) { poffset = (attr & 0x3ff) << 7; #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); #endif if(!(colour & 0x2000)) -- cgit v1.2.3