Skip to content

Commit

Permalink
core: Fix negative HSV values (#111)
Browse files Browse the repository at this point in the history
* fixed description in CMakeLists.txt and fixed negative hsv

* ran clang-format
  • Loading branch information
flashrun24 authored Feb 15, 2025
1 parent c377732 commit 36a24e6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
2 changes: 1 addition & 1 deletion src/hyprpicker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 36a24e6

Please sign in to comment.