From 35c6fe201b235ebb36a588d078844e94ddb2b4d2 Mon Sep 17 00:00:00 2001 From: Vaxry Date: Thu, 31 Jul 2025 14:08:57 +0200 Subject: [PATCH] core: fix resizing raster images --- libhyprcursor/hyprcursor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libhyprcursor/hyprcursor.cpp b/libhyprcursor/hyprcursor.cpp index edb0673..7c71538 100644 --- a/libhyprcursor/hyprcursor.cpp +++ b/libhyprcursor/hyprcursor.cpp @@ -496,7 +496,7 @@ bool CHyprcursorManager::loadThemeStyle(const SCursorStyleInfo& info) { Debug::log(HC_LOG_TRACE, logFn, "loadThemeStyle: png shape {} has {} frames", shape->directory, FRAMES.size()); - const int PIXELSIDE = std::round(leader->side / shape->nominalSize); + const int PIXELSIDE = std::round(info.size / shape->nominalSize); Debug::log(HC_LOG_TRACE, logFn, "loadThemeStyle: png shape has nominal {:.2f}, pixel size will be {}x", shape->nominalSize, PIXELSIDE);