Fix beg_col calculation when painting from window start.