From 6428317739e1fe978e00527c2d2ea87c757a96db Mon Sep 17 00:00:00 2001 From: Ray Date: Wed, 7 Nov 2018 22:50:27 +0100 Subject: [PATCH] Corrected 1px thick issue --- src/shapes.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shapes.c b/src/shapes.c index 838bce0e..eb63d5cc 100644 --- a/src/shapes.c +++ b/src/shapes.c @@ -128,7 +128,7 @@ void DrawLineEx(Vector2 startPos, Vector2 endPos, float thick, Color color) rlPushMatrix(); rlTranslatef((float)startPos.x, (float)startPos.y, 0); rlRotatef(RAD2DEG*angle, 0, 0, 1); - rlTranslatef(0, -thick/2.0f, 0); + rlTranslatef(0, (thick > 1.0f) ? -thick/2.0f : -1.0f, 0); rlBegin(RL_QUADS); rlColor4ub(color.r, color.g, color.b, color.a);