From 41b0c5c4f9dcd80ab1228bee7eac35f9ab9f08e7 Mon Sep 17 00:00:00 2001 From: Ray Date: Sat, 20 Apr 2024 19:58:10 +0200 Subject: [PATCH] REVIEWED: `DrawRectangleLines()` pixel offset This could be actually very tricky and GPU/drivers dependant... --- src/rshapes.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rshapes.c b/src/rshapes.c index 956ca735d..e2b55bc32 100644 --- a/src/rshapes.c +++ b/src/rshapes.c @@ -813,7 +813,7 @@ void DrawRectangleLines(int posX, int posY, int width, int height, Color color) { rlBegin(RL_LINES); rlColor4ub(color.r, color.g, color.b, color.a); - rlVertex2f(posX + 1, posY + 1); + rlVertex2f(posX, posY); rlVertex2f(posX + width, posY + 1); rlVertex2f(posX + width, posY + 1);