mirror of
https://github.com/holub/mame
synced 2025-10-06 09:00:04 +03:00
Merge pull request #2952 from rzero9/patch-1
fmtowns: fix gaps in flipped sprites
This commit is contained in:
commit
f27706071e
@ -738,17 +738,17 @@ void towns_state::render_sprite_4(uint32_t poffset, uint32_t coffset, uint16_t x
|
|||||||
|
|
||||||
if(xflip)
|
if(xflip)
|
||||||
{
|
{
|
||||||
xstart = x+14;
|
|
||||||
if (xhalfsize)
|
if (xhalfsize)
|
||||||
{
|
{
|
||||||
xend = x+6;
|
xstart = x+6;
|
||||||
xdir = -1;
|
xdir = -1;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
xend = x-2;
|
xstart = x+14;
|
||||||
xdir = -2;
|
xdir = -2;
|
||||||
}
|
}
|
||||||
|
xend = x-2;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -766,10 +766,10 @@ void towns_state::render_sprite_4(uint32_t poffset, uint32_t coffset, uint16_t x
|
|||||||
}
|
}
|
||||||
if(yflip)
|
if(yflip)
|
||||||
{
|
{
|
||||||
ystart = y+15;
|
|
||||||
if (yhalfsize)
|
if (yhalfsize)
|
||||||
yend = y+7;
|
ystart = y+7;
|
||||||
else
|
else
|
||||||
|
ystart = y+15;
|
||||||
yend = y-1;
|
yend = y-1;
|
||||||
ydir = -1;
|
ydir = -1;
|
||||||
}
|
}
|
||||||
@ -874,10 +874,10 @@ void towns_state::render_sprite_16(uint32_t poffset, uint16_t x, uint16_t y, boo
|
|||||||
|
|
||||||
if(xflip)
|
if(xflip)
|
||||||
{
|
{
|
||||||
xstart = x+16;
|
|
||||||
if (xhalfsize)
|
if (xhalfsize)
|
||||||
xend = x+8;
|
xstart = x+8;
|
||||||
else
|
else
|
||||||
|
xstart = x+16;
|
||||||
xend = x;
|
xend = x;
|
||||||
xdir = -1;
|
xdir = -1;
|
||||||
}
|
}
|
||||||
@ -892,10 +892,10 @@ void towns_state::render_sprite_16(uint32_t poffset, uint16_t x, uint16_t y, boo
|
|||||||
}
|
}
|
||||||
if(yflip)
|
if(yflip)
|
||||||
{
|
{
|
||||||
ystart = y+15;
|
|
||||||
if (yhalfsize)
|
if (yhalfsize)
|
||||||
yend = y+7;
|
ystart = y+7;
|
||||||
else
|
else
|
||||||
|
ystart = y+15;
|
||||||
yend = y-1;
|
yend = y-1;
|
||||||
ydir = -1;
|
ydir = -1;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user