From 782a9fda53227aa8ef8fc430ac3ab98ef769f33e Mon Sep 17 00:00:00 2001 From: Toni Wilen Date: Sun, 28 Sep 2025 11:13:59 +0300 Subject: [PATCH] Fix bpl_end calculation in hires. --- drawing.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.47.3