Merge pull request #68855 from Cafalaarl/Cafalaarl/master
Fixed incorrect gradient orientation in HSV vertical slider
This commit is contained in:
commit
ebf4f75c54
1 changed files with 3 additions and 1 deletions
|
@ -1088,7 +1088,9 @@ void ColorPicker::_hsv_draw(int p_which, Control *c) {
|
|||
} else if (p_which == 1) {
|
||||
if (actual_shape == SHAPE_HSV_RECTANGLE) {
|
||||
Ref<Texture2D> hue = get_theme_icon(SNAME("color_hue"), SNAME("ColorPicker"));
|
||||
c->draw_texture_rect(hue, Rect2(Point2(), c->get_size()));
|
||||
c->draw_set_transform(Point2(), -Math_PI / 2, Size2(c->get_size().x, -c->get_size().y));
|
||||
c->draw_texture_rect(hue, Rect2(Point2(), Size2(1, 1)));
|
||||
c->draw_set_transform(Point2(), 0, Size2(1, 1));
|
||||
int y = c->get_size().y - c->get_size().y * (1.0 - h);
|
||||
Color col;
|
||||
col.set_hsv(h, 1, 1);
|
||||
|
|
Loading…
Add table
Reference in a new issue