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/Format.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/helpers/Format.cpp') diff --git a/src/helpers/Format.cpp b/src/helpers/Format.cpp index c3d72185..e03569a6 100644 --- a/src/helpers/Format.cpp +++ b/src/helpers/Format.cpp @@ -222,7 +222,7 @@ const SPixelFormat* NFormatUtils::getPixelFormatFromDRM(DRMFormat drm) { const SPixelFormat* NFormatUtils::getPixelFormatFromGL(uint32_t glFormat, uint32_t glType, bool alpha) { for (auto const& fmt : GLES3_FORMATS) { - if (fmt.glFormat == (int)glFormat && fmt.glType == (int)glType && fmt.withAlpha == alpha) + if (fmt.glFormat == sc(glFormat) && fmt.glType == sc(glType) && fmt.withAlpha == alpha) return &fmt; } -- cgit v1.2.3