From ce307446b29ad1cab057e75951d98a26a0f9cc9f Mon Sep 17 00:00:00 2001 From: "yu.dongliang" <18588496441@163.com> Date: Wed, 18 Oct 2023 12:15:11 +0800 Subject: [PATCH] CF flags --- scf_eda_pb.h | 4 ++++ ses_layout.c | 8 ++++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/scf_eda_pb.h b/scf_eda_pb.h index 059f2b6..21fc713 100644 --- a/scf_eda_pb.h +++ b/scf_eda_pb.h @@ -22,6 +22,7 @@ enum { #define SCF_EDA_PIN_OUT 2 #define SCF_EDA_PIN_POS 4 #define SCF_EDA_PIN_NEG 8 +#define SCF_EDA_PIN_CF 16 #define SCF_EDA_V_INIT -10001001.0 #define SCF_EDA_V_MIN -10000000.0 @@ -147,4 +148,7 @@ void scf_eboard__free (ScfEboard* b); return ret; \ } while (0) +#define EDA_PIN_ADD_PIN_EF(_ef, _p0, _p1) \ + EDA_PIN_ADD_PIN((_ef)->components[(_p0)->cid], (_p0)->id, (_ef)->components[(_p1)->cid], (_p1)->id) + #endif diff --git a/ses_layout.c b/ses_layout.c index dd4a6f2..c3e593e 100644 --- a/ses_layout.c +++ b/ses_layout.c @@ -965,7 +965,7 @@ 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); + cairo_set_line_width(cr, 4); if (SCF_EDA_PIN_POS & el->flags) cairo_set_source_rgb(cr, 1, 0, 0); @@ -978,7 +978,11 @@ 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 if (SCF_EDA_PIN_CF & el->flags) { + cairo_set_source_rgb(cr, 1, 0.1, 0.8); + cairo_set_line_width(cr, 2.5); + } else { cairo_set_source_rgb(cr, 1, 0.5, 0.1); cairo_set_line_width(cr, 2); } -- 2.25.1