Fixed A2 masking in the blitter

This commit is contained in:
Angelo Salese 2010-05-11 15:24:15 +00:00
parent d10671714b
commit ed52c63984

View File

@ -236,8 +236,8 @@ static void FUNCNAME(running_machine *machine, UINT32 command, UINT32 a1flags, U
/* set up the A2 mask */ /* set up the A2 mask */
if (A2FIXED & 0x00008000) if (A2FIXED & 0x00008000)
{ {
a2_xmask = (blitter_regs[A2_MASK] << 16) | 0xffff; a2_xmask = ((blitter_regs[A2_MASK] & 0x0000ffff) << 16) | 0xffff;
a2_ymask = (blitter_regs[A2_MASK] & 0xffff) | 0xffff; a2_ymask = (blitter_regs[A2_MASK] & 0xffff0000) | 0xffff;
} }
/* modify outer loop steps based on command */ /* modify outer loop steps based on command */