Disassembled DrawRect, DrawHorizontalLine and DrawVerticalLine functions.