From b26b1c00809b5730b4c9a13add69bf0f40e30e5d Mon Sep 17 00:00:00 2001 From: RadsammyT Date: Thu, 15 Aug 2024 23:16:08 -0400 Subject: [PATCH] [rshapes] Remove `DrawRectangleLines()`'s + 1 offset --- src/rshapes.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/rshapes.c b/src/rshapes.c index 676b2521a..2ca270d16 100644 --- a/src/rshapes.c +++ b/src/rshapes.c @@ -814,16 +814,16 @@ 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((float)posX, (float)posY); - rlVertex2f((float)posX + (float)width, (float)posY + 1); + rlVertex2f((float)posX + (float)width, (float)posY); - rlVertex2f((float)posX + (float)width, (float)posY + 1); + rlVertex2f((float)posX + (float)width, (float)posY); rlVertex2f((float)posX + (float)width, (float)posY + (float)height); rlVertex2f((float)posX + (float)width, (float)posY + (float)height); - rlVertex2f((float)posX + 1, (float)posY + (float)height); + rlVertex2f((float)posX, (float)posY + (float)height); - rlVertex2f((float)posX + 1, (float)posY + (float)height); - rlVertex2f((float)posX + 1, (float)posY + 1); + rlVertex2f((float)posX, (float)posY + (float)height); + rlVertex2f((float)posX, (float)posY); rlEnd(); }