From a9d1e99533de1fd378892c0da5caa564f2bb639b Mon Sep 17 00:00:00 2001 From: kub Date: Fri, 12 Jul 2024 22:11:51 +0200 Subject: [PATCH] core, adjustment for background color DMA --- pico/videoport.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pico/videoport.c b/pico/videoport.c index 9663e2bf..9c35162d 100644 --- a/pico/videoport.c +++ b/pico/videoport.c @@ -626,7 +626,8 @@ static void DmaSlow(int len, u32 source) if (sl > VdpFIFO.fifo_hcounts[0]-5) // hint delay is 5 slots sl = (s8)sl; // TODO this is needed to cover timing inaccuracies - if (sl <= 12) sl = -2; + if (sl <= 12) sl = -3; + else if (sl <= 40) sl = 30; PicoDrawBgcDMA(base, source, mask, len, sl); // do last DMA cycle since it's all going to the same cram location source = source+len-1; -- 2.39.5