diff options
| author | Ray <raysan5@gmail.com> | 2018-11-07 22:50:27 +0100 |
|---|---|---|
| committer | Ray <raysan5@gmail.com> | 2018-11-07 22:50:27 +0100 |
| commit | 6428317739e1fe978e00527c2d2ea87c757a96db (patch) | |
| tree | 22667c35a8e4c7ce50a688ef2a55ce5b6c82f4b2 /src | |
| parent | e17bd422fa2198db7cd9e570f97b9eaa40795bd2 (diff) | |
| download | raylib-6428317739e1fe978e00527c2d2ea87c757a96db.tar.gz raylib-6428317739e1fe978e00527c2d2ea87c757a96db.zip | |
Corrected 1px thick issue
Diffstat (limited to 'src')
| -rw-r--r-- | src/shapes.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |
