Hidden away on line 4073 of main.pas lives a work of literary and software development genius that I'm almost too modest to share.
// to do, no idea what this does
Sublime, isn't it?
The code it's attached to looks straightforward enough, it's part of a set of routines that allows the user to quickly paint gradients across the frame. This particular code is designed for a 2-bitplane matrix.
It's really simple, it's assigning a colour to a row of pixels based on the user's selection.
It's possible that it's an old comment that I've been too scared to remove over the past years, or it's to signify a bug that I've forgotten to fix.
It certainly looks fine in situ, but I'll do some testing to make sure there's nothing weird going on.