From 968d0bc891348877c443467863999b49650ae003 Mon Sep 17 00:00:00 2001 From: Bigfoot71 Date: Mon, 24 Jun 2024 01:39:39 +0200 Subject: [PATCH] fix `ImageDrawLineV` --- src/rtextures.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rtextures.c b/src/rtextures.c index 5c4c537d8..df9ccbdf4 100644 --- a/src/rtextures.c +++ b/src/rtextures.c @@ -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);