_simplify_draw()
authoryu.dongliang <18588496441@163.com>
Tue, 31 Oct 2023 11:23:59 +0000 (19:23 +0800)
committeryu.dongliang <18588496441@163.com>
Tue, 31 Oct 2023 11:23:59 +0000 (19:23 +0800)
ses_step_simplify.c

index d11c6938f72e8cfa4c7196b44df5e1c0fc2e549e..004e9aeebe1d1e776ef613b7a0e49d317b718b23 100644 (file)
@@ -43,10 +43,11 @@ static int _simplify_draw(ScfEfunction* f, uint32_t bx, uint32_t by, uint32_t bw
                        cairo_set_source_rgb(cr, 0, 0, 1);
                        cairo_set_line_width(cr, 4);
 
-               } else if (SCF_EDA_PIN_OUT & el->flags)
+               } else if (SCF_EDA_PIN_OUT & el->flags) {
                        cairo_set_source_rgb(cr, 1, 0, 1);
+                       cairo_set_line_width(cr, 4);
 
-               else if (el->v == B->pins[SCF_EDA_Battery_POS]->v) {
+               else if (el->v == B->pins[SCF_EDA_Battery_POS]->v) {
                        cairo_set_source_rgb(cr, 0.9, 0, 0);
                        cairo_set_line_width(cr, 2.5);
 
@@ -56,7 +57,11 @@ static int _simplify_draw(ScfEfunction* f, uint32_t bx, uint32_t by, uint32_t bw
 
                } else if (SCF_EDA_PIN_IN & el->flags)
                        cairo_set_source_rgb(cr, 0, 1, 0);
-               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);
 
                for (k = 0; k < el->n_lines; k++) {