From: Toni Wilen Date: Thu, 21 Sep 2023 17:27:34 +0000 (+0300) Subject: Fix remove interlace artifacts -option X-Git-Tag: 5.1.0~101 X-Git-Url: https://git.unchartedbackwaters.co.uk/w/?a=commitdiff_plain;h=66b4cf8f1829567108c0aae795b49f37dd12b0e8;p=francis%2Fwinuae.git Fix remove interlace artifacts -option --- 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; }