gutter: draw_cells(): small optimization

Compute part of the state outside the loop.