From b8e8c0e325d213f2dcf4adad5506989fa224716e Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Tue, 15 Jan 2019 23:24:20 +1100 Subject: Cleanup: comment line length (editors) Prevents clang-format wrapping text before comments. --- source/blender/editors/mask/mask_draw.c | 22 +++++++++++++--------- source/blender/editors/mask/mask_ops.c | 3 ++- 2 files changed, 15 insertions(+), 10 deletions(-) (limited to 'source/blender/editors/mask') diff --git a/source/blender/editors/mask/mask_draw.c b/source/blender/editors/mask/mask_draw.c index fc9cfc85bc5..8c33db11d06 100644 --- a/source/blender/editors/mask/mask_draw.c +++ b/source/blender/editors/mask/mask_draw.c @@ -634,14 +634,17 @@ static float *mask_rasterize(Mask *mask, const int width, const int height) /* sets up the opengl context. * width, height are to match the values from ED_mask_get_size() */ -void ED_mask_draw_region(Mask *mask, ARegion *ar, - const char draw_flag, const char draw_type, const char overlay_mode, - const int width_i, const int height_i, /* convert directly into aspect corrected vars */ - const float aspx, const float aspy, - const bool do_scale_applied, const bool do_draw_cb, - float stabmat[4][4], /* optional - only used by clip */ - const bContext *C /* optional - only used when do_post_draw is set or called from clip editor */ - ) +void ED_mask_draw_region( + Mask *mask, ARegion *ar, + const char draw_flag, const char draw_type, const char overlay_mode, + /* convert directly into aspect corrected vars */ + const int width_i, const int height_i, + const float aspx, const float aspy, + const bool do_scale_applied, const bool do_draw_cb, + /* optional - only used by clip */ + float stabmat[4][4], + /* optional - only used when do_post_draw is set or called from clip editor */ + const bContext *C) { struct View2D *v2d = &ar->v2d; @@ -718,7 +721,8 @@ void ED_mask_draw_region(Mask *mask, ARegion *ar, MEM_freeN(buffer); } - /* apply transformation so mask editing tools will assume drawing from the origin in normalized space */ + /* apply transformation so mask editing tools will assume drawing from the + * origin in normalized space */ GPU_matrix_push(); GPU_matrix_translate_2f(x + xofs, y + yofs); GPU_matrix_scale_2f(zoomx, zoomy); diff --git a/source/blender/editors/mask/mask_ops.c b/source/blender/editors/mask/mask_ops.c index 20fc403762d..9adf4c802a2 100644 --- a/source/blender/editors/mask/mask_ops.c +++ b/source/blender/editors/mask/mask_ops.c @@ -2220,7 +2220,8 @@ static int mask_duplicate_exec(bContext *C, wmOperator *UNUSED(op)) MaskSplinePoint *new_point; int b; - /* BKE_mask_spline_add might allocate the points, need to free them in this case. */ + /* BKE_mask_spline_add might allocate the points, + * need to free them in this case. */ if (new_spline->points) { MEM_freeN(new_spline->points); } -- cgit v1.2.3