]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
Fix HAM
authorToni Wilen <twilen@winuae.net>
Sun, 5 Jan 2025 14:42:19 +0000 (16:42 +0200)
committerToni Wilen <twilen@winuae.net>
Sun, 5 Jan 2025 14:42:19 +0000 (16:42 +0200)
drawing.cpp

index e57e11f5797ae5d92c0b9e64889f05f602477fd5..8ea6e497c205cb2e721061e61ab9d41c51a64605 100644 (file)
@@ -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;
        }