Skip to content

Commit

Permalink
fix ImageDrawLineV
Browse files Browse the repository at this point in the history
  • Loading branch information
Bigfoot71 committed Jun 23, 2024
1 parent 1916b22 commit 968d0bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/rtextures.c
Original file line number Diff line number Diff line change
Expand Up @@ -3459,8 +3459,8 @@ void ImageDrawLineV(Image *dst, Vector2 start, Vector2 end, Color color)
// Round start and end positions to nearest integer coordinates
int x1 = (int)(start.x + 0.5f);
int y1 = (int)(start.y + 0.5f);
int x2 = (int)(start.x + 0.5f);
int y2 = (int)(start.y + 0.5f);
int x2 = (int)(end.x + 0.5f);
int y2 = (int)(end.y + 0.5f);

// Draw a vertical line using ImageDrawLine function
ImageDrawLine(dst, x1, y1, x2, y2, color);
Expand Down

0 comments on commit 968d0bc

Please sign in to comment.