From: Toni Wilen Date: Sun, 28 Sep 2025 08:13:59 +0000 (+0300) Subject: Fix bpl_end calculation in hires. X-Git-Url: https://git.unchartedbackwaters.co.uk/w/?a=commitdiff_plain;h=782a9fda53227aa8ef8fc430ac3ab98ef769f33e;p=francis%2Fwinuae.git Fix bpl_end calculation in hires. --- diff --git a/drawing.cpp b/drawing.cpp index aa1c3281..9b2ce484 100644 --- a/drawing.cpp +++ b/drawing.cpp @@ -6975,7 +6975,7 @@ void draw_denise_bitplane_line_fast(int gfx_ypos, enum nln_how how, struct lines // negative checks are needed to handle always-on HDIW int hstop_offset_adjusted = ls->hstop_offset; if (ls->bpl1dat_trigger_offset >= 0) { - int bpl_end = ls->bpl1dat_trigger_offset + (1 << RES_MAX) + ((ls->bpllen * 32 + byteshift * 4) >> denise_res); + int bpl_end = ls->bpl1dat_trigger_offset + (1 << RES_MAX) + (ls->bpllen * 32 + byteshift * 4); if (hstop_offset_adjusted < 0 || hstop_offset_adjusted > bpl_end) { hstop_offset_adjusted = bpl_end; }