Skip to content

Commit

Permalink
Fixed formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Noah11012 committed Oct 20, 2018
1 parent 6da4220 commit 9b7e914
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/pixmap_draw.c
Original file line number Diff line number Diff line change
Expand Up @@ -102,13 +102,18 @@ int pixmap_image_draw_triangle(PixMapImage *image, RGB *rgb, int x1, int y1,
/* This will end up drawing the three vertex pixels twice each,
but it's a small amount of overhead */
int status = pixmap_image_draw_line(image, rgb, x1, x2, y1, y2);

if(status)
return -1;
return -1;
status = pixmap_image_draw_line(image, rgb, x2, y2, x3, y3);

if(status)
return -1;
return -1;

status - pixmap_image_draw_line(image, rgb, x3, y3, x1, y1);

if(status)
return -1;
return -1;

return 0;
}

0 comments on commit 9b7e914

Please sign in to comment.