From 59414c4cee9fd48821750ba0b649f8b3d657399f Mon Sep 17 00:00:00 2001 From: outfoxxed Date: Wed, 22 Jan 2025 00:35:48 -0800 Subject: [PATCH] math/region: fix scale using x scale as y scale (#39) --- src/math/Region.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/math/Region.cpp b/src/math/Region.cpp index e69ddb8..0a74f87 100644 --- a/src/math/Region.cpp +++ b/src/math/Region.cpp @@ -149,9 +149,9 @@ CRegion& Hyprutils::Math::CRegion::scale(const Vector2D& scale) { for (auto& r : rects) { r.x1 = std::floor(r.x1 * scale.x); - r.y1 = std::floor(r.y1 * scale.x); + r.y1 = std::floor(r.y1 * scale.y); r.x2 = std::ceil(r.x2 * scale.x); - r.y2 = std::ceil(r.y2 * scale.x); + r.y2 = std::ceil(r.y2 * scale.y); add(&r); } @@ -214,4 +214,4 @@ Vector2D Hyprutils::Math::CRegion::closestPoint(const Vector2D& vec) const { } return leader; -} \ No newline at end of file +}