From 9c9f95feeddaccdc8d62de405e4aa80e9246e302 Mon Sep 17 00:00:00 2001 From: Toni Wilen Date: Sun, 27 Aug 2017 17:23:28 +0300 Subject: [PATCH] Fixed BPLCON4 check. --- custom.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/custom.cpp b/custom.cpp index d83d5fcf..af4f710c 100644 --- a/custom.cpp +++ b/custom.cpp @@ -1042,19 +1042,19 @@ STATIC_INLINE void compute_delay_offset (void) } #endif -static void record_color_change2 (int hpos, int regno, unsigned long value) +static void record_color_change2 (int hpos, int regno, uae_u32 value) { int pos = (hpos * 2) * 4; if (regno == 0x1000 + 0x10c) { pos += 4; // BPLCON4 change needs 1 lores pixel delay + if (value & 0xff00) + thisline_decision.xor_seen = true; } curr_color_changes[next_color_change].linepos = pos; curr_color_changes[next_color_change].regno = regno; curr_color_changes[next_color_change].value = value; next_color_change++; curr_color_changes[next_color_change].regno = -1; - if (value & 0xff00) - thisline_decision.xor_seen = true; } static bool isehb (uae_u16 bplcon0, uae_u16 bplcon2) -- 2.47.3