I think I want to rewrite one of my drawing routines. The way I did it first has the advantage of being fast and using very little memory, but has the down side of relying on implementation defined behavior which means it looks fine on my laptop and kind of trash on the machine at my roaster. Sketched out a replacement algorithm that doesn't rely on implementation defined behavior, is likely to be a little more flexible on most systems, but does require more memory. Still plenty fast.