From f331e55835806020366239a2364100452ef21912 Mon Sep 17 00:00:00 2001 From: Toni Wilen Date: Wed, 15 Oct 2025 17:57:35 +0300 Subject: [PATCH] Calculate largest hdiw start and end also in fast mode drawing --- drawing.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drawing.cpp b/drawing.cpp index a47b3ccc..6e78fc88 100644 --- a/drawing.cpp +++ b/drawing.cpp @@ -7110,6 +7110,13 @@ void draw_denise_bitplane_line_fast(int gfx_ypos, enum nln_how how, struct lines memset(gbuf, 0, total); } + if (ls->hstop_offset > diwlastword_total && ls->bpl1dat_trigger_offset >= 0) { + diwlastword_total = ls->hstop_offset; + } + if (ls->hstrt_offset < diwfirstword_total && ls->bpl1dat_trigger_offset >= 0) { + diwfirstword_total = ls->hstrt_offset; + } + #else int cnt = draw_start; -- 2.47.3