|
|
@@ -447,11 +447,13 @@ static void key_copier_view_measure_draw_callback(Canvas *canvas, void *model) {
|
|
|
}
|
|
|
// new end
|
|
|
|
|
|
- canvas_draw_line(
|
|
|
- canvas, pin_center_px - pin_half_width_px,
|
|
|
- bottom_contour_px - current_depth_px, pin_center_px + pin_half_width_px,
|
|
|
- bottom_contour_px -
|
|
|
- current_depth_px); // draw bottom pin width horizontal line
|
|
|
+ // canvas_draw_line(
|
|
|
+ // canvas,
|
|
|
+ // pin_center_px - pin_half_width_px,
|
|
|
+ // bottom_contour_px - current_depth_px,
|
|
|
+ // pin_center_px + pin_half_width_px,
|
|
|
+ // bottom_contour_px - current_depth_px); // draw bottom pin width
|
|
|
+ // horizontal line
|
|
|
|
|
|
int last_depth = my_model->depth[current_pin - 2] - my_format.min_depth_ind;
|
|
|
int next_depth = my_model->depth[current_pin] - my_format.min_depth_ind;
|
|
|
@@ -462,10 +464,13 @@ static void key_copier_view_measure_draw_callback(Canvas *canvas, void *model) {
|
|
|
last_depth = 0;
|
|
|
pre_extra_x_px = max(current_depth_px + pin_half_width_px, 0);
|
|
|
|
|
|
- canvas_draw_line(
|
|
|
- canvas, 0, bottom_contour_px,
|
|
|
- pin_center_px - pin_half_width_px - current_depth_px,
|
|
|
- bottom_contour_px); // draw bottom shoulder (hidden by level contour)
|
|
|
+ // canvas_draw_line(
|
|
|
+ // canvas,
|
|
|
+ // 0,
|
|
|
+ // bottom_contour_px,
|
|
|
+ // pin_center_px - pin_half_width_px - current_depth_px,
|
|
|
+ // bottom_contour_px); // draw bottom shoulder (hidden by
|
|
|
+ // level contour)
|
|
|
}
|
|
|
if (current_pin == my_model->format.pin_num) {
|
|
|
next_depth = 0;
|
|
|
@@ -531,7 +536,10 @@ static void key_copier_view_measure_draw_callback(Canvas *canvas, void *model) {
|
|
|
canvas_draw_line(canvas, 0, 62, level_contour_px, 62);
|
|
|
canvas_draw_line(canvas, level_contour_px, 62, level_contour_px + elbow_px,
|
|
|
62 - elbow_px);
|
|
|
- canvas_draw_line(canvas, 1, 1, 1, 63);
|
|
|
+
|
|
|
+ canvas_draw_line(
|
|
|
+ canvas, level_contour_px, 20, level_contour_px,
|
|
|
+ 63); // change to if stop ==tip and measure from this point back.
|
|
|
|
|
|
int slc_pin_px =
|
|
|
(int)round((my_format.first_pin_inch +
|