From 36a24e61be4cb2ef9eab4ac4c9b2e83a7aa26ac9 Mon Sep 17 00:00:00 2001 From: Sepandar <116840915+flashrun24@users.noreply.github.com> Date: Sat, 15 Feb 2025 17:50:05 +0000 Subject: [PATCH] core: Fix negative HSV values (#111) * fixed description in CMakeLists.txt and fixed negative hsv * ran clang-format --- CMakeLists.txt | 2 +- src/hyprpicker.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index f54d6a6..1455860 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -5,7 +5,7 @@ string(STRIP ${VER_RAW} VERSION) project( hyprpicker - DESCRIPTION "A blazing fast wayland wallpaper utility" + DESCRIPTION "A wlroots-compatible Wayland color picker that does not suck" VERSION ${VERSION}) set(CMAKE_MESSAGE_LOG_LEVEL "STATUS") diff --git a/src/hyprpicker.cpp b/src/hyprpicker.cpp index 650204a..8cc6a47 100644 --- a/src/hyprpicker.cpp +++ b/src/hyprpicker.cpp @@ -721,7 +721,7 @@ void CHyprpicker::initMouse() { l_or_v = std::round(v * 100); } - h = std::round(h); + h = std::round(h < 0 ? h + 360 : h); s = std::round(s * 100); if (m_bFancyOutput)