From 004459d114b1581a767070c0a5ce012230717a41 Mon Sep 17 00:00:00 2001 From: Toni Wilen Date: Wed, 2 Apr 2025 20:12:08 +0300 Subject: [PATCH] Missed genlock changes. --- drawing.cpp | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/drawing.cpp b/drawing.cpp index 3e0e649d..4ac9b7ca 100644 --- a/drawing.cpp +++ b/drawing.cpp @@ -5348,8 +5348,16 @@ void draw_denise_line(int gfx_ypos, enum nln_how how, uae_u32 linecnt, int start denise_cck++; } - if (buf1 && gbuf && denise_pixtotal_max > 0) { - memset(gbuf, 0, ((2 * denise_pixtotal_max) << hresolution) * sizeof(uae_u16)); + if (buf1 && denise_pixtotal_max > 0) { +#if 0 + memset(buf1, 0, ((2 * denise_pixtotal_max) << hresolution) * sizeof(uae_u32)); + if (buf2 && buf1 != buf2) { + memset(buf2, 0, ((2 * denise_pixtotal_max) << hresolution) * sizeof(uae_u32)); + } +#endif + if (gbuf) { + memset(gbuf, 0, (2 * denise_pixtotal_max) << hresolution); + } } } else { @@ -5461,7 +5469,7 @@ void draw_denise_line(int gfx_ypos, enum nln_how how, uae_u32 linecnt, int start memset(p1, 0, ww * sizeof(uae_u32)); if (bufg) { uae_u8 *gp1 = (p1 - ptrs) + bufg; - memset(gp1, 0, ww * sizeof(uae_u16)); + memset(gp1, 0, ww); } } } else { @@ -5469,7 +5477,7 @@ void draw_denise_line(int gfx_ypos, enum nln_how how, uae_u32 linecnt, int start memset(p1 - ww, 0, w * sizeof(uae_u32)); if (bufg) { uae_u8 *gp1 = (p1 - ptrs) + bufg; - memset(gp1 - ww, 0, w * sizeof(uae_u16)); + memset(gp1 - ww, 0, w); } } } -- 2.47.3