diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-05-21 15:27:09 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-05-21 15:39:04 +0300 |
commit | fd7352e5a29c8ecfcbacb56e36fefc4428cb9771 (patch) | |
tree | c2edf5a5c309787fbdfdba9bdca4118ef4f600b6 /source/blender/editors/space_graph/graph_edit.c | |
parent | 24607a2940e72de5bae5ac1cb14eee29a3fcb02b (diff) |
Cleanup: use term pad instead of padding
- Use min/max instead of bottom/top
(in keeping with the rest of the BLI_rect API).
- Swap args (was passing in max, min).
Diffstat (limited to 'source/blender/editors/space_graph/graph_edit.c')
-rw-r--r-- | source/blender/editors/space_graph/graph_edit.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/editors/space_graph/graph_edit.c b/source/blender/editors/space_graph/graph_edit.c index 90cba617129..b3fafa09256 100644 --- a/source/blender/editors/space_graph/graph_edit.c +++ b/source/blender/editors/space_graph/graph_edit.c @@ -287,12 +287,12 @@ static int graphkeys_viewall(bContext *C, BLI_rctf_scale(&cur_new, 1.1f); /* Take regions into account, that could block the view. */ - float padding_top = UI_SCRUBBING_MARGIN_Y; - float padding_bottom = 0; + float pad_top = UI_SCRUBBING_MARGIN_Y; + float pad_bottom = 0; if (!BLI_listbase_is_empty(ED_context_get_markers(C))) { - padding_bottom = UI_MARKER_MARGIN_Y; + pad_bottom = UI_MARKER_MARGIN_Y; } - BLI_rctf_padding_y(&cur_new, ac.ar->sizey * UI_DPI_FAC, padding_top, padding_bottom); + BLI_rctf_pad_y(&cur_new, ac.ar->sizey * UI_DPI_FAC, pad_bottom, pad_top); UI_view2d_smooth_view(C, ac.ar, &cur_new, smooth_viewtx); return OPERATOR_FINISHED; |