From b644187335c6d72af68d20eb3b09582839179786 Mon Sep 17 00:00:00 2001 From: "yu.dongliang" <18588496441@163.com> Date: Tue, 17 Oct 2023 21:17:47 +0800 Subject: [PATCH] ses_layout_draw() --- ses_layout.c | 11 ++++++++--- ses_step_simplify.c | 7 +++++-- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/ses_layout.c b/ses_layout.c index 35f0c33..dd4a6f2 100644 --- a/ses_layout.c +++ b/ses_layout.c @@ -965,6 +965,8 @@ int ses_layout_draw(ScfEboard* b, uint32_t bx, uint32_t by, uint32_t bw, uint32_ for (j = 0; j < f->n_elines; j++) { el = f->elines[j]; + cairo_set_line_width(cr, 3); + if (SCF_EDA_PIN_POS & el->flags) cairo_set_source_rgb(cr, 1, 0, 0); @@ -976,9 +978,10 @@ int ses_layout_draw(ScfEboard* b, uint32_t bx, uint32_t by, uint32_t bw, uint32_ else if (SCF_EDA_PIN_OUT & el->flags) cairo_set_source_rgb(cr, 1, 0, 1); - else + else { cairo_set_source_rgb(cr, 1, 0.5, 0.1); - + cairo_set_line_width(cr, 2); + } for (k = 0; k < el->n_lines; k++) { l = el->lines[k]; @@ -999,6 +1002,8 @@ int ses_layout_draw(ScfEboard* b, uint32_t bx, uint32_t by, uint32_t bw, uint32_ } } + cairo_set_line_width(cr, 2); + for (i = 0; i < b->n_functions; i++) { f = b->functions[i]; @@ -1189,7 +1194,7 @@ int ses_layout_board(ScfEboard* b) return ret; } -// ses_steps_analyse(f, 5, 1); + ses_steps_analyse(f, 5, 1); x = f->x; y = f->y; diff --git a/ses_step_simplify.c b/ses_step_simplify.c index f5720b1..07b80db 100644 --- a/ses_step_simplify.c +++ b/ses_step_simplify.c @@ -33,6 +33,8 @@ static int _simplify_draw(ScfEfunction* f, uint32_t bx, uint32_t by, uint32_t bw for (j = 0; j < f->n_elines; j++) { el = f->elines[j]; + cairo_set_line_width(cr, 3); + if ((SCF_EDA_PIN_POS & el->flags) || el->v == B->pins[SCF_EDA_Battery_POS]->v) cairo_set_source_rgb(cr, 1, 0, 0); @@ -44,9 +46,10 @@ static int _simplify_draw(ScfEfunction* f, uint32_t bx, uint32_t by, uint32_t bw else if (SCF_EDA_PIN_OUT & el->flags) cairo_set_source_rgb(cr, 1, 0, 1); - else + else { cairo_set_source_rgb(cr, 1, 0.5, 0.1); - + cairo_set_line_width(cr, 2); + } for (k = 0; k < el->n_lines; k++) { l = el->lines[k]; -- 2.25.1