Support a colour stack for painting to the bitmap.
In mid-2005, Laurent Garnier sent me an updated distribution which added support for a colour stack. That was, unfortunately, about the time I effectively stopped working on dvi2bitmap (change of job), so I didn't apply the changes at the time. With a sudden flurry of activity now (prompted by accidentally discovering a queue of submitted patches I hadn't been alerted about -- thanks, sourceforge...), I've dug out the patch again, and attempted to hand-apply it. In doing so, however, I've realised that I'm not sure how Laurent's changes work; but I don't want to apply a patch I don't understand; and I've again run out of time....
Attached is a patch created by diffing Laurent's modified source files against revision 23e9b74f083a (2005-01-18T10:58:00), which is at least close to the then-CVS repository version that Laurent used.
This patch also includes some Windows fixes, which by now may or may not be redundant, but which in any case I'm not in a position to test.