From beee22a95ed9044950e5486f22edd813e00ffa2c Mon Sep 17 00:00:00 2001 From: Kamikadze <40305144+Kam1k4dze@users.noreply.github.com> Date: Thu, 14 Aug 2025 19:44:56 +0500 Subject: refactor: Use new hyprutils casts (#11377) --- src/helpers/math/Math.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/helpers/math/Math.cpp') diff --git a/src/helpers/math/Math.cpp b/src/helpers/math/Math.cpp index d111690e..f927701c 100644 --- a/src/helpers/math/Math.cpp +++ b/src/helpers/math/Math.cpp @@ -1,4 +1,5 @@ #include "Math.hpp" +#include "../memory/Memory.hpp" Hyprutils::Math::eTransform wlTransformToHyprutils(wl_output_transform t) { switch (t) { @@ -17,7 +18,7 @@ Hyprutils::Math::eTransform wlTransformToHyprutils(wl_output_transform t) { wl_output_transform invertTransform(wl_output_transform tr) { if ((tr & WL_OUTPUT_TRANSFORM_90) && !(tr & WL_OUTPUT_TRANSFORM_FLIPPED)) - tr = (wl_output_transform)(tr ^ (int)WL_OUTPUT_TRANSFORM_180); + tr = sc(tr ^ sc(WL_OUTPUT_TRANSFORM_180)); return tr; } -- cgit v1.2.3