From: Toni Wilen Date: Tue, 27 May 2025 16:05:21 +0000 (+0300) Subject: Fix borderblank starting 1 shres pixel too early emulation. X-Git-Url: https://git.unchartedbackwaters.co.uk/w/?a=commitdiff_plain;h=fafd6bc107eec21b677df3bd5e41382c63e63ff1;p=francis%2Fwinuae.git Fix borderblank starting 1 shres pixel too early emulation. --- diff --git a/drawing.cpp b/drawing.cpp index 80a77944..6eb531b2 100644 --- a/drawing.cpp +++ b/drawing.cpp @@ -6056,7 +6056,7 @@ static void lts_unaligned_aga(int cnt, int cnt_next, int h) uae_u8 gpix = 0xff; if (!denise_blank_active) { // borderblank ends 1 shres pixel early - dpix_val = cnt == denise_brdstop && denise_hdiw && bpl1dat_trigger && !denise_vblank_active ? denise_colors.acolors[0] : bordercolor; + dpix_val = cnt == denise_brdstop && (denise_hdiw || cnt + 1 == denise_hstrt) ? denise_colors.acolors[0] : bordercolor; gpix = 0; if (denise_hdiw && bpl1dat_trigger) { pix = loaded_pixs[ipix]; @@ -6278,7 +6278,7 @@ static void lts_unaligned_ecs(int cnt, int cnt_next, int h) uae_u8 gpix = 0xff; if (!denise_blank_active) { // borderblank ends 1 shres pixel early - dpix_val = cnt == denise_brdstop ? denise_colors.acolors[0] : bordercolor; + dpix_val = cnt == denise_brdstop && (denise_hdiw || cnt + 1 == denise_hstrt) ? denise_colors.acolors[0] : bordercolor; gpix = 0; if (denise_hdiw && bpl1dat_trigger) { pix = getbpl6();