comparison vdp.c @ 1106:cacbd3f18f03

Fix field flag handling bug introduced with VDP/render interface cleanup
author Michael Pavone <pavone@retrodev.com>
date Mon, 12 Dec 2016 09:50:33 -0800
parents 22e87b739ad6
children 928a65750345
comparison
equal deleted inserted replaced
1105:27ea21b10361 1106:cacbd3f18f03
1654 }*/ 1654 }*/
1655 context->regs[reg] = value; 1655 context->regs[reg] = value;
1656 if (reg == REG_MODE_4) { 1656 if (reg == REG_MODE_4) {
1657 context->double_res = (value & (BIT_INTERLACE | BIT_DOUBLE_RES)) == (BIT_INTERLACE | BIT_DOUBLE_RES); 1657 context->double_res = (value & (BIT_INTERLACE | BIT_DOUBLE_RES)) == (BIT_INTERLACE | BIT_DOUBLE_RES);
1658 if (!context->double_res) { 1658 if (!context->double_res) {
1659 context->flags &= FLAG2_EVEN_FIELD; 1659 context->flags2 &= ~FLAG2_EVEN_FIELD;
1660 } 1660 }
1661 } 1661 }
1662 context->cd &= 0x3C; 1662 context->cd &= 0x3C;
1663 } 1663 }
1664 } else { 1664 } else {