diff options
author | cracyc <cracyc@users.noreply.github.com> | 2021-05-23 10:57:26 -0500 |
---|---|---|
committer | cracyc <cracyc@users.noreply.github.com> | 2021-05-23 10:57:26 -0500 |
commit | f3480fec67978a39ae804ee1ae686be735a46439 (patch) | |
tree | c315aaa0da23ee983fefe01daa35d6f18faddb43 | |
parent | 5fe20586ee7aeb31c9384b82712c3ba37701cee4 (diff) |
fmtowns: fix sprite gaps
-rw-r--r-- | src/mame/video/fmtowns.cpp | 16 |
1 files 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)) |