From: Toni Wilen Date: Sun, 27 Aug 2017 14:23:28 +0000 (+0300) Subject: Fixed BPLCON4 check. X-Git-Tag: 3600~108 X-Git-Url: https://git.unchartedbackwaters.co.uk/w/?a=commitdiff_plain;h=9c9f95feeddaccdc8d62de405e4aa80e9246e302;p=francis%2Fwinuae.git Fixed BPLCON4 check. --- 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)