diff options
author | Campbell Barton <ideasman42@gmail.com> | 2014-05-14 03:34:03 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2014-05-14 03:34:47 +0400 |
commit | 30361a73419d38f9fa21e935ada325398af42177 (patch) | |
tree | 93c3d45bf63d0866430166ebc1e23b2d55096fad /source | |
parent | 23b682d5948e98264340e6dc81237b81d299b5b0 (diff) |
Fix for curve widget hue gradient drawing incorrectly when zooming
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/editors/interface/interface_draw.c | 4 |
1 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 d0f238bc5ba..47334d6f77c 100644 --- a/source/blender/editors/interface/interface_draw.c +++ b/source/blender/editors/interface/interface_draw.c @@ -1324,9 +1324,9 @@ void ui_draw_but_CURVE(ARegion *ar, uiBut *but, uiWidgetColors *wcol, const rcti float col[3] = {0.0f, 0.0f, 0.0f}; /* dummy arg */ grid.xmin = rect->xmin + zoomx * (-offsx); - grid.xmax = rect->xmax + zoomx * (-offsx); + grid.xmax = grid.xmin + zoomx; grid.ymin = rect->ymin + zoomy * (-offsy); - grid.ymax = rect->ymax + zoomy * (-offsy); + grid.ymax = grid.ymin + zoomy; ui_draw_gradient(&grid, col, UI_GRAD_H, 1.0f); |