]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
Calculate largest hdiw start and end also in fast mode drawing
authorToni Wilen <twilen@winuae.net>
Wed, 15 Oct 2025 14:57:35 +0000 (17:57 +0300)
committerToni Wilen <twilen@winuae.net>
Wed, 15 Oct 2025 14:57:35 +0000 (17:57 +0300)
drawing.cpp

index a47b3ccce51b863cefcf4eed2ca3867b3793bc99..6e78fc884f130e2f7abe54e8416e005b86006c8c 100644 (file)
@@ -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;