From fd7352e5a29c8ecfcbacb56e36fefc4428cb9771 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Tue, 21 May 2019 22:27:09 +1000 Subject: 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). --- source/blender/editors/space_graph/graph_edit.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'source/blender/editors/space_graph/graph_edit.c') 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; -- cgit v1.2.3