window: Improve redraw performance with large scrollback by simplifying paint()