]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
Fix bpl_end calculation in hires.
authorToni Wilen <twilen@winuae.net>
Sun, 28 Sep 2025 08:13:59 +0000 (11:13 +0300)
committerToni Wilen <twilen@winuae.net>
Sun, 28 Sep 2025 08:13:59 +0000 (11:13 +0300)
drawing.cpp

index aa1c32819e3ce9487ea19d2aec6510aba3a677c0..9b2ce484bf7edf58a514343f0d1d91ce0f8788e6 100644 (file)
@@ -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;
                }