From 6c3dba6919af630755ceea06426149388679cfe3 Mon Sep 17 00:00:00 2001 From: Toni Wilen Date: Sun, 5 Jan 2025 16:42:19 +0200 Subject: [PATCH] Fix HAM --- drawing.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drawing.cpp b/drawing.cpp index e57e11f5..8ea6e497 100644 --- a/drawing.cpp +++ b/drawing.cpp @@ -3194,8 +3194,6 @@ static void hstart_new(void) } sprites_hidden = sprites_hidden2; bplshiftcnt[0] = bplshiftcnt[1] = 0; - last_bpl_pix = 0; - setlasthamcolor(); #ifdef DEBUGGER if (debug_dma) { record_dma_event_denise(debug_dma_ptr, denise_cycle_half, DENISE_EVENT_BPL1DAT_HDIW, false); @@ -4144,6 +4142,8 @@ static void do_hstrt_aga(int cnt) denise_hdiw = true; sprites_hidden2 &= ~1; sprites_hidden = sprites_hidden2; + last_bpl_pix = 0; + setlasthamcolor(); if (cnt < diwfirstword_total) { diwfirstword_total = cnt; } @@ -4172,6 +4172,8 @@ static void do_hstrt_ecs(int cnt) denise_hdiw = true; sprites_hidden2 &= ~1; sprites_hidden = sprites_hidden2; + last_bpl_pix = 0; + setlasthamcolor(); if (cnt < diwfirstword_total) { diwfirstword_total = cnt; } -- 2.47.3