[PATCH 5/5] riched20: Simplify some of the drawing code using a few helpers.