Cleanup: clang-format

This commit is contained in:
Campbell Barton
2021-05-17 15:12:41 +10:00
parent 6a771175b6
commit 27c0d29138

View File

@@ -292,7 +292,7 @@ static void draw_ticks(const float start_percentage,
}
}
static void draw_main_line(const struct rctf main_line_rect,
static void draw_main_line(const struct rctf main_line_rect,
const float percentage,
const bool overshoot,
const uint8_t color_overshoot[4],
@@ -390,7 +390,7 @@ static void pose_slide_draw_2d_slider(const struct bContext *UNUSED(C), ARegion
const float line_width = 1.5 * U.pixelsize;
const float base_tick_height = 12.0 * U.pixelsize;
const float line_y = region->winy / 2;
struct rctf main_line_rect = {.xmin = (region->winx / 2) - (SLIDE_PIXEL_DISTANCE / 2),
.xmax = (region->winx / 2) + (SLIDE_PIXEL_DISTANCE / 2),
.ymin = line_y - line_width / 2,
@@ -448,7 +448,7 @@ static void pose_slide_draw_2d_slider(const struct bContext *UNUSED(C), ARegion
sizeof(percentage_string),
&percentage_pixel_size[0],
&percentage_pixel_size[1]);
BLF_position(fontid,
main_line_rect.xmin - 24.0 * U.pixelsize - percentage_pixel_size[0] / 2,
(region->winy / 2) - percentage_pixel_size[1] / 2,
@@ -1196,14 +1196,14 @@ static void pose_slide_draw_status(bContext *C, tPoseSlideOp *pso)
}
else {
BLI_snprintf(status_str,
sizeof(status_str),
"%s: %s | %s | %s | %s | %s",
mode_str,
limits_str,
overshoot_str,
precision_str,
increments_str,
bone_vis_str);
sizeof(status_str),
"%s: %s | %s | %s | %s | %s",
mode_str,
limits_str,
overshoot_str,
precision_str,
increments_str,
bone_vis_str);
}
ED_workspace_status_text(C, status_str);