@@ -161,11 +161,11 @@ void ColorPickerShape::draw_cursor(Control *p_control, const Vector2 &p_center,
161161 p_control->draw_texture (color_picker->theme_cache .picker_cursor , position);
162162}
163163
164- void ColorPickerShape::draw_circle_cursor (Control *p_control, float p_hue) {
164+ void ColorPickerShape::draw_circle_cursor (Control *p_control, float p_hue, float p_saturation ) {
165165 const Vector2 center = p_control->get_size () * 0.5 ;
166166 const Vector2 cursor_pos (
167- center.x + (center.x * Math::cos (p_hue * Math::TAU) * color_picker-> s ),
168- center.y + (center.y * Math::sin (p_hue * Math::TAU) * color_picker-> s ));
167+ center.x + (center.x * Math::cos (p_hue * Math::TAU) * p_saturation ),
168+ center.y + (center.y * Math::sin (p_hue * Math::TAU) * p_saturation ));
169169
170170 draw_cursor (p_control, cursor_pos);
171171}
@@ -636,7 +636,7 @@ void ColorPickerShapeVHSCircle::_circle_draw() {
636636
637637void ColorPickerShapeVHSCircle::_circle_overlay_draw () {
638638 draw_focus_circle (circle_overlay);
639- draw_circle_cursor (circle_overlay, color_picker->h );
639+ draw_circle_cursor (circle_overlay, color_picker->h , color_picker-> s );
640640}
641641
642642void ColorPickerShapeVHSCircle::_value_slider_draw () {
@@ -721,7 +721,7 @@ void ColorPickerShapeOKHSLCircle::_circle_draw() {
721721
722722void ColorPickerShapeOKHSLCircle::_circle_overlay_draw () {
723723 draw_focus_circle (circle_overlay);
724- draw_circle_cursor (circle_overlay, color_picker->ok_hsl_h );
724+ draw_circle_cursor (circle_overlay, color_picker->ok_hsl_h , color_picker-> ok_hsl_s );
725725}
726726
727727void ColorPickerShapeOKHSLCircle::_value_slider_draw () {
0 commit comments