From 7e317c36f30e76d82ffeabc0e7144843da17c13f Mon Sep 17 00:00:00 2001 From: "yu.dongliang" <18588496441@163.com> Date: Mon, 16 Oct 2023 16:37:32 +0800 Subject: [PATCH] cairo_arc() --- ses_layout.c | 8 ++++++++ ses_step_dc_input.c | 2 +- ses_step_simplify.c | 8 ++++++++ 3 files changed, 17 insertions(+), 1 deletion(-) diff --git a/ses_layout.c b/ses_layout.c index 4bb15ac..1daf10a 100644 --- a/ses_layout.c +++ b/ses_layout.c @@ -859,6 +859,14 @@ int ses_layout_draw(ScfEboard* b, uint32_t bx, uint32_t by, uint32_t bw, uint32_ cairo_set_source_rgb(cr, 0.6, 0.6, 0.0); + for (k = 0; k < c->n_pins; k++) { + p = c->pins[k]; + + cairo_arc (cr, p->x, p->y, 4, 0, 2 * M_PI); + cairo_fill(cr); + } + cairo_stroke(cr); + int dx0; int dy0; diff --git a/ses_step_dc_input.c b/ses_step_dc_input.c index 2daed43..212beb3 100644 --- a/ses_step_dc_input.c +++ b/ses_step_dc_input.c @@ -17,7 +17,7 @@ static int _dc_input_handler(ScfEfunction* f, int64_t ns, int64_t count, ses_ctx if (SCF_EDA_PIN_IN & el->flags) { - el->v = (0x0) * B->v; + el->v = (0x1) * B->v; el->vconst = 1; scf_logw("IN el: %ld, V: %lg\n", el->id, el->v); diff --git a/ses_step_simplify.c b/ses_step_simplify.c index 20be0e1..f5720b1 100644 --- a/ses_step_simplify.c +++ b/ses_step_simplify.c @@ -85,6 +85,14 @@ static int _simplify_draw(ScfEfunction* f, uint32_t bx, uint32_t by, uint32_t bw cairo_set_source_rgb(cr, 0.6, 0.6, 0.0); + for (k = 0; k < c->n_pins; k++) { + p = c->pins[k]; + + cairo_arc (cr, p->x, p->y, 4, 0, 2 * M_PI); + cairo_fill(cr); + } + cairo_stroke(cr); + int dx0; int dy0; -- 2.25.1