]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
Fixed BPLCON4 check.
authorToni Wilen <twilen@winuae.net>
Sun, 27 Aug 2017 14:23:28 +0000 (17:23 +0300)
committerToni Wilen <twilen@winuae.net>
Sun, 27 Aug 2017 14:23:28 +0000 (17:23 +0300)
custom.cpp

index d83d5fcf4593af238b92f04d8d9012e8a020302c..af4f710c3fa7212181b05e133263dc6cd89601ee 100644 (file)
@@ -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)