Draw line

Explanation
This function draws a 1 pixel line from (x1,y1) to (x2,y2). To draw a horizontal line, both y1 and y2 should be the same number, To draw a vertical line, both x1 and x2 should be the same number.

Remarks

 * Must be in the Draw Event or used with Surfaces.