diff --git a/Input/inputHandler.c b/Input/inputHandler.c index 167f9c3..1d87ea0 100644 --- a/Input/inputHandler.c +++ b/Input/inputHandler.c @@ -15,7 +15,7 @@ void DrawRect(Vector2 rectStart, Vector2 *mousePosition){ rectStart = GetRectangle(rectStart); - DrawRectangleLines(rectStart.x, rectStart.y, width, height, GREEN); + DrawRectangleLines(rectStart.x, rectStart.y, abs(width), abs(height), GREEN); } Vector2 GetRectangle(Vector2 rectStart){