From a715a767b56245024dfa7469f301e4f39b866ee1 Mon Sep 17 00:00:00 2001 From: ArthurSonzogni Date: Sun, 2 Jun 2024 12:03:41 +0200 Subject: [PATCH] Fix Color::HSV(h,0,v) There was a problem when v==0 --- src/ftxui/screen/color.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/ftxui/screen/color.cpp b/src/ftxui/screen/color.cpp index 3d32b68..a70ec87 100644 --- a/src/ftxui/screen/color.cpp +++ b/src/ftxui/screen/color.cpp @@ -148,10 +148,6 @@ Color Color::RGB(uint8_t red, uint8_t green, uint8_t blue) { /// @ingroup screen // static Color Color::HSV(uint8_t h, uint8_t s, uint8_t v) { - if (s == 0) { - return {0, 0, 0}; - } - uint8_t region = h / 43; // NOLINT uint8_t remainder = (h - (region * 43)) * 6; // NOLINT uint8_t p = (v * (255 - s)) >> 8; // NOLINT