fix ImageDrawLineV

This commit is contained in:
Bigfoot71 2024-06-24 01:39:39 +02:00
parent 1916b2272d
commit 968d0bc891

View File

@ -3459,8 +3459,8 @@ void ImageDrawLineV(Image *dst, Vector2 start, Vector2 end, Color color)
// Round start and end positions to nearest integer coordinates // Round start and end positions to nearest integer coordinates
int x1 = (int)(start.x + 0.5f); int x1 = (int)(start.x + 0.5f);
int y1 = (int)(start.y + 0.5f); int y1 = (int)(start.y + 0.5f);
int x2 = (int)(start.x + 0.5f); int x2 = (int)(end.x + 0.5f);
int y2 = (int)(start.y + 0.5f); int y2 = (int)(end.y + 0.5f);
// Draw a vertical line using ImageDrawLine function // Draw a vertical line using ImageDrawLine function
ImageDrawLine(dst, x1, y1, x2, y2, color); ImageDrawLine(dst, x1, y1, x2, y2, color);