cairo_arc()
authoryu.dongliang <18588496441@163.com>
Mon, 16 Oct 2023 08:37:32 +0000 (16:37 +0800)
committeryu.dongliang <18588496441@163.com>
Mon, 16 Oct 2023 08:37:32 +0000 (16:37 +0800)
ses_layout.c
ses_step_dc_input.c
ses_step_simplify.c

index 4bb15ac80dbfa637bfb2ab93e86fc6827751c3a6..1daf10a7ea50a573a73782df41f44b8d274c6ebb 100644 (file)
@@ -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;
 
index 2daed43d333c38e1b594e722cfb0cd0411eae975..212beb355abac2816a63997b05603f449252f333 100644 (file)
@@ -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);
index 20be0e1804a99d0e971a39ad8286d8e4779ac3e7..f5720b169dd5562ab750a316ce0f224f398002d3 100644 (file)
@@ -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;