diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-06-21 19:42:08 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-06-21 19:42:08 +0400 |
commit | cb22a49893d20f5e38b6e978ebde652b1e6ed70a (patch) | |
tree | 33ae7f2e2b0c363ea1aec68c463dc4dd1a7d6ef0 | |
parent | 038e5b2255fedbb1538699eec48f9c20240fbb59 (diff) |
color backdrop on hue balance was misleading (shifted to the right)
-rw-r--r-- | source/blender/editors/interface/interface_draw.c | 2 | ||||
-rw-r--r-- | source/blender/editors/interface/interface_widgets.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/interface/interface_draw.c b/source/blender/editors/interface/interface_draw.c index 67fec49b2a2..b14cbdaffc5 100644 --- a/source/blender/editors/interface/interface_draw.c +++ b/source/blender/editors/interface/interface_draw.c @@ -1378,7 +1378,7 @@ void ui_draw_but_CURVE(ARegion *ar, uiBut *but, uiWidgetColors *wcol, rcti *rect /* grid, hsv uses different grid */ gl_shaded_color((unsigned char *)wcol->inner, -16); /* TODO, grid lines does not line up with colors, need to look into this */ - ui_draw_but_curve_grid(rect, zoomx, zoomy, offsx, offsy, 0.25f / 2.0f); + ui_draw_but_curve_grid(rect, zoomx, zoomy, offsx, offsy, 0.1666666f); } else { if (cumap->flag & CUMA_DO_CLIP) { diff --git a/source/blender/editors/interface/interface_widgets.c b/source/blender/editors/interface/interface_widgets.c index 004c5306d65..464298fa57e 100644 --- a/source/blender/editors/interface/interface_widgets.c +++ b/source/blender/editors/interface/interface_widgets.c @@ -2032,7 +2032,7 @@ void ui_draw_gradient(rcti *rect, const float hsv[3], int type, float alpha) hsv_to_rgb(dx, 1.0, v, &col1[3][0], &col1[3][1], &col1[3][2]); break; case UI_GRAD_H: - hsv_to_rgb(dx, 1.0, 1.0, &col1[0][0], &col1[0][1], &col1[0][2]); + hsv_to_rgb(dx + 0.05f, 1.0, 1.0, &col1[0][0], &col1[0][1], &col1[0][2]); copy_v3_v3(col1[1], col1[0]); copy_v3_v3(col1[2], col1[0]); copy_v3_v3(col1[3], col1[0]); |