diff options
author | Campbell Barton <ideasman42@gmail.com> | 2014-02-13 02:24:48 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2014-02-13 02:37:27 +0400 |
commit | d4c87f2f79b674963a73ceee154226a1cd6d2acc (patch) | |
tree | 9e164c34acf351a62c6ffd463c73e91f9b7643ff /source/blender/editors/interface/interface_draw.c | |
parent | e43c3ad88af70617f7708a82c0189f202681ac67 (diff) |
Code cleanup: remove unused button aspect
Diffstat (limited to 'source/blender/editors/interface/interface_draw.c')
-rw-r--r-- | source/blender/editors/interface/interface_draw.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/editors/interface/interface_draw.c b/source/blender/editors/interface/interface_draw.c index dda02ebde6c..1e2a8baf141 100644 --- a/source/blender/editors/interface/interface_draw.c +++ b/source/blender/editors/interface/interface_draw.c @@ -1195,10 +1195,10 @@ void ui_draw_but_CURVE(ARegion *ar, uiBut *but, uiWidgetColors *wcol, const rcti BLI_rcti_size_y(&scissor_new)); /* calculate offset and zoom */ - zoomx = (BLI_rcti_size_x(rect) - 2.0f * but->aspect) / BLI_rctf_size_x(&cumap->curr); - zoomy = (BLI_rcti_size_y(rect) - 2.0f * but->aspect) / BLI_rctf_size_y(&cumap->curr); - offsx = cumap->curr.xmin - but->aspect / zoomx; - offsy = cumap->curr.ymin - but->aspect / zoomy; + zoomx = (BLI_rcti_size_x(rect) - 2.0f) / BLI_rctf_size_x(&cumap->curr); + zoomy = (BLI_rcti_size_y(rect) - 2.0f) / BLI_rctf_size_y(&cumap->curr); + offsx = cumap->curr.xmin - (1.0f / zoomx); + offsy = cumap->curr.ymin - (1.0f / zoomy); /* backdrop */ if (but->a1 == UI_GRAD_H) { |