mirror of
https://github.com/raysan5/raylib.git
synced 2025-09-16 00:08:15 +00:00
Corrected 1px thick issue
This commit is contained in:
@@ -128,7 +128,7 @@ void DrawLineEx(Vector2 startPos, Vector2 endPos, float thick, Color color)
|
|||||||
rlPushMatrix();
|
rlPushMatrix();
|
||||||
rlTranslatef((float)startPos.x, (float)startPos.y, 0);
|
rlTranslatef((float)startPos.x, (float)startPos.y, 0);
|
||||||
rlRotatef(RAD2DEG*angle, 0, 0, 1);
|
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);
|
rlBegin(RL_QUADS);
|
||||||
rlColor4ub(color.r, color.g, color.b, color.a);
|
rlColor4ub(color.r, color.g, color.b, color.a);
|
||||||
|
Reference in New Issue
Block a user