We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9ad5cdf commit cbd2fc9Copy full SHA for cbd2fc9
src/graph/image.rs
@@ -462,7 +462,7 @@ fn calc_corner_edge_drawing_pixels(
462
let curve_center_x = base_center_x;
463
let curve_center_y = base_center_y;
464
let half_line_width = (image_params.line_width as i32) / 2;
465
- let adjust = if image_params.line_width % 2 == 0 {
+ let adjust = if image_params.line_width.is_multiple_of(2) {
466
0
467
} else {
468
1
0 commit comments