summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorRay <[email protected]>2024-04-20 19:58:10 +0200
committerRay <[email protected]>2024-04-20 19:58:10 +0200
commit41b0c5c4f9dcd80ab1228bee7eac35f9ab9f08e7 (patch)
tree236d8138e37e4f31f4ebc7229908f461f1bb9d41
parentb51f4db8c29eba3506e953b351bedbf41f2a5c95 (diff)
downloadraylib-41b0c5c4f9dcd80ab1228bee7eac35f9ab9f08e7.tar.gz
raylib-41b0c5c4f9dcd80ab1228bee7eac35f9ab9f08e7.zip
REVIEWED: `DrawRectangleLines()` pixel offset
This could be actually very tricky and GPU/drivers dependant...
-rw-r--r--src/rshapes.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rshapes.c b/src/rshapes.c
index 956ca735..e2b55bc3 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);