From: kub Date: Fri, 12 Jul 2024 20:11:51 +0000 (+0200) Subject: core, adjustment for background color DMA X-Git-Tag: v2.00~6 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a9d1e99533de1fd378892c0da5caa564f2bb639b;p=picodrive.git core, adjustment for background color DMA --- 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;