From 66b4cf8f1829567108c0aae795b49f37dd12b0e8 Mon Sep 17 00:00:00 2001 From: Toni Wilen Date: Thu, 21 Sep 2023 20:27:34 +0300 Subject: [PATCH] Fix remove interlace artifacts -option --- custom.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/custom.cpp b/custom.cpp index 787c04e5..c1e9342d 100644 --- a/custom.cpp +++ b/custom.cpp @@ -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; } -- 2.47.3