You need to process 8 pixels per iteration of your drawing loop, so you should be reading 32-bits at a time from your interleaved file.
After drawing 8 pixels (treating those equal to 0 or 0xf as transparent), check the 7th; if it's equal to 0xf then you should start drawing on the next line.
|