Software speed up for set h-line and set pixel.