View Single Post
Old 16 December 2019, 16:06   #6
deimos
Registered User

 
Join Date: Jul 2018
Location: France
Posts: 549
Quote:
Originally Posted by a/b View Post
You can set the initial state (normally 0, so it skips pixels until it hits a 1) in bltcon1 carry-in bit. If you set it to 1, it will start filling from the start of each line (right border in fill mode, of course), and then switch to skipping when it hits a 1.
I can't find a way to do that with the FCI bit without ending up with a line down the right hand edge, as I have to draw pixels there to turn off the fill, and I have to use inclusive fill mode, i.e.

I draw this:
00100
00010
00001
00001
00001
and the blitter fills it as:
00111
00011
00001
00001
00001
I could split it into two blits, just clearing the bottom few rows, but there's a point where it's more effort than it's worth - this is case #2 of the 14 cases I have to deal with to draw the sky / ground. I am wondering if there is a better way.

Last edited by deimos; 16 December 2019 at 16:43.
deimos is offline  
 
Page generated in 0.04295 seconds with 11 queries