changeset 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 27ea21b10361
children fc125af5e4f1
files vdp.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/vdp.c	Sun Dec 11 22:00:41 2016 -0800
+++ b/vdp.c	Mon Dec 12 09:50:33 2016 -0800
@@ -1656,7 +1656,7 @@
 				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;