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>2019-05-21 15:27:09 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-05-21 15:39:04 +0300
commitfd7352e5a29c8ecfcbacb56e36fefc4428cb9771 (patch)
treec2edf5a5c309787fbdfdba9bdca4118ef4f600b6 /source/blender/editors/space_graph/graph_edit.c
parent24607a2940e72de5bae5ac1cb14eee29a3fcb02b (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.c8
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;