Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2014-02-13 02:24:48 +0400
committerCampbell Barton <ideasman42@gmail.com>2014-02-13 02:37:27 +0400
commitd4c87f2f79b674963a73ceee154226a1cd6d2acc (patch)
tree9e164c34acf351a62c6ffd463c73e91f9b7643ff /source/blender/editors/interface/interface_draw.c
parente43c3ad88af70617f7708a82c0189f202681ac67 (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.c8
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) {