]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
Fix remove interlace artifacts -option
authorToni Wilen <twilen@winuae.net>
Thu, 21 Sep 2023 17:27:34 +0000 (20:27 +0300)
committerToni Wilen <twilen@winuae.net>
Thu, 21 Sep 2023 17:27:34 +0000 (20:27 +0300)
custom.cpp

index 787c04e500aaae9e347b62893cc39816fbef3ce0..c1e9342d08ddd636e035b903c0a410892befa6aa 100644 (file)
@@ -12482,6 +12482,9 @@ static void reset_scandoubler_sync(int hpos)
        bprun = 0;
        bprun_cycle = 0;
        ddf_stopping = 0;
+       int hnew = hpos - (REFRESH_FIRST_HPOS - HARDWIRED_DMA_TRIGGER_HPOS + 2);
+       hdiw_denisecounter = ((hnew + 0) & 0xff) << CCK_SHRES_SHIFT;
+       last_sprite_hpos = last_sprite_point = (((hnew + 0) & 0xff) << 1) + 1;
 }