summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorRay <[email protected]>2024-06-25 16:37:20 +0200
committerRay <[email protected]>2024-06-25 16:37:20 +0200
commit3e441ae98b262c1f5a746d49491918c862137fef (patch)
treef2e4a4fcc96508d62c8e6c453198781a0d1bad26
parentec95ee85a386db29f059b9738cd5ec9329f1661e (diff)
downloadraylib-3e441ae98b262c1f5a746d49491918c862137fef.tar.gz
raylib-3e441ae98b262c1f5a746d49491918c862137fef.zip
REVIEWED: `DrawLine()` #4075
-rw-r--r--src/rshapes.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/rshapes.c b/src/rshapes.c
index 49970d7f..a08cb49e 100644
--- a/src/rshapes.c
+++ b/src/rshapes.c
@@ -179,8 +179,8 @@ void DrawLine(int startPosX, int startPosY, int endPosX, int endPosY, Color colo
rlBegin(RL_LINES);
rlColor4ub(color.r, color.g, color.b, color.a);
// WARNING: Adding 0.5f offset to "center" point on selected pixel
- rlVertex2f((float)startPosX + 0.5f, (float)startPosY + 0.5f);
- rlVertex2f((float)endPosX + 0.5f, (float)endPosY + 0.5f);
+ rlVertex2f((float)startPosX, (float)startPosY);
+ rlVertex2f((float)endPosX, (float)endPosY);
rlEnd();
}
@@ -190,8 +190,8 @@ void DrawLineV(Vector2 startPos, Vector2 endPos, Color color)
rlBegin(RL_LINES);
rlColor4ub(color.r, color.g, color.b, color.a);
// WARNING: Adding 0.5f offset to "center" point on selected pixel
- rlVertex2f(startPos.x + 0.5f, startPos.y + 0.5f);
- rlVertex2f(endPos.x + 0.5f, endPos.y + 0.5f);
+ rlVertex2f(startPos.x, startPos.y);
+ rlVertex2f(endPos.x, endPos.y);
rlEnd();
}