Vultraz

Untitled

Sep 9th, 2016
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.16 KB | None | 0 0
  1. if(x1 > x2) {
  2. // invert points
  3. draw_line(canvas, renderer, color_, x2, y2, x1, y1);
  4. } else {
  5. draw_line(canvas, renderer, color_, x1, y1, x2, y2);
  6. }
Advertisement
Add Comment
Please, Sign In to add comment