summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Pavone <pavone@retrodev.com>2016-12-12 09:50:33 -0800
committerMichael Pavone <pavone@retrodev.com>2016-12-12 09:50:33 -0800
commit4ee89f324a86790871f3ea0f1e15f96f8460864b (patch)
tree2e7e7e50e1be9747184e16889cba990cdc595dcb
parentdf7d682d963dbb3de9645a0376d58396b65649b7 (diff)
Fix field flag handling bug introduced with VDP/render interface cleanup
-rw-r--r--vdp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vdp.c b/vdp.c
index 86ce7e4..683c76b 100644
--- a/vdp.c
+++ b/vdp.c
@@ -1656,7 +1656,7 @@ int vdp_control_port_write(vdp_context * context, uint16_t value)
if (reg == REG_MODE_4) {
context->double_res = (value & (BIT_INTERLACE | BIT_DOUBLE_RES)) == (BIT_INTERLACE | BIT_DOUBLE_RES);
if (!context->double_res) {
- context->flags &= FLAG2_EVEN_FIELD;
+ context->flags2 &= ~FLAG2_EVEN_FIELD;
}
}
context->cd &= 0x3C;