diff options
author | cracyc <cracyc@users.noreply.github.com> | 2021-05-23 10:57:26 -0500 |
---|---|---|
committer | Vas Crabb <vas@vastheman.com> | 2021-05-25 04:08:34 +1000 |
commit | dbb54033db5fc8358e2f5b5ce96cdd030526e846 (patch) | |
tree | c8f0754f761008efbc208184d94a9150dc7c1592 | |
parent | 1f6fad1918e246a835535394978628d775414c19 (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)) |