ses_layout_draw()
authoryu.dongliang <18588496441@163.com>
Tue, 17 Oct 2023 13:17:47 +0000 (21:17 +0800)
committeryu.dongliang <18588496441@163.com>
Tue, 17 Oct 2023 13:17:47 +0000 (21:17 +0800)
ses_layout.c
ses_step_simplify.c

index 35f0c33c6ab8069216bdeeafd47daae664cf43ec..dd4a6f20ba34f60e3546650ca9474e763daad431 100644 (file)
@@ -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;
index f5720b169dd5562ab750a316ce0f224f398002d3..07b80db2f502d6a20880dba041f4a0ce02e7d30a 100644 (file)
@@ -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];