core: Fix negative HSV values (#111)

* fixed description in CMakeLists.txt and fixed negative hsv

* ran clang-format
This commit is contained in:
Sepandar 2025-02-15 17:50:05 +00:00 committed by GitHub
parent c3777320b3
commit 36a24e61be
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -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")

View file

@ -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)