]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
Fix remove interlace artifacts
authorToni Wilen <twilen@winuae.net>
Mon, 12 May 2025 17:47:21 +0000 (20:47 +0300)
committerToni Wilen <twilen@winuae.net>
Mon, 12 May 2025 17:47:21 +0000 (20:47 +0300)
custom.cpp

index 7292e4c7e0bf148d00fc1fef7964826180cce881..1766d8369bc8672b9ad613ff61a497d0d68256f9 100644 (file)
@@ -4191,7 +4191,7 @@ static void draw_line(int, bool);
 static uae_u16 CLXDAT(void)
 {
        // draw line up to current horizontal position to get accurate collision state
-       if (currprefs.cpu_memory_cycle_exact && currprefs.m68k_speed >= 0) {
+       if (currprefs.cpu_memory_cycle_exact && currprefs.m68k_speed >= 0 && !doflickerfix_active()) {
                int ldvpos = linear_display_vpos + draw_line_next_line;
                draw_line(ldvpos, false);
        }
@@ -10974,6 +10974,7 @@ static void do_draw_line(void)
                                denise_restore_registers();
                                lof_display ^= 1;
                                scandoubled_line = 1;
+                               rga_denise_cycle_count_start = 0;
                                draw_line(linear_display_vpos, true);
                                scandoubled_line = 0;
                                lof_display ^= 1;