From dc14ccbec184a57af9edf499ff40eae2458bd7b8 Mon Sep 17 00:00:00 2001 From: Toni Wilen Date: Sun, 21 Sep 2025 18:37:43 +0300 Subject: [PATCH] Fix DPF mode possible garbage in right border --- drawing.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drawing.cpp b/drawing.cpp index 2fc9c46b..aa1c3281 100644 --- a/drawing.cpp +++ b/drawing.cpp @@ -6951,12 +6951,12 @@ void draw_denise_bitplane_line_fast(int gfx_ypos, enum nln_how how, struct lines delay2 += delayoffset; delay2 &= delaymask; delay2 <<= 2; - byteshift = r_shift(delay2, RES_MAX - res); - cp2 -= byteshift; + int byteshift2 = r_shift(delay2, RES_MAX - res); + cp2 -= byteshift2; // different bitplane delay in DPF? Merge them. if (cp != cp2) { uae_u8 *dpout = (uae_u8*)(dpf_chunky_out + 1024); - for (int i = 0; i < len * 8; i++) { + for (int i = 0; i < len * 8 + 7; i++) { uae_u32 pix0 = ((uae_u32*)cp)[i]; uae_u32 pix1 = ((uae_u32*)cp2)[i]; uae_u32 c = (pix0 & 0x55555555) | (pix1 & 0xaaaaaaaa); -- 2.47.3