From: yu.dongliang <18588496441@163.com> Date: Tue, 31 Oct 2023 11:23:59 +0000 (+0800) Subject: _simplify_draw() X-Git-Url: http://baseworks.info/?a=commitdiff_plain;h=8cfa64403573670ffaababa32f99a43dae3af661;p=ses.git _simplify_draw() --- diff --git a/ses_step_simplify.c b/ses_step_simplify.c index d11c693..004e9ae 100644 --- a/ses_step_simplify.c +++ b/ses_step_simplify.c @@ -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++) {