From 297c146f0d44015101cef1753e3c41e226ed5e7a Mon Sep 17 00:00:00 2001 From: "yu.dongliang" <18588496441@163.com> Date: Fri, 20 Oct 2023 21:17:59 +0800 Subject: [PATCH] _simplify_draw() --- ses_step_simplify.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/ses_step_simplify.c b/ses_step_simplify.c index a6a86a3..40d824f 100644 --- a/ses_step_simplify.c +++ b/ses_step_simplify.c @@ -43,19 +43,19 @@ 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 (el->v == B->pins[SCF_EDA_Battery_POS]->v) { - cairo_set_source_rgb(cr, 1, 0, 0); + } else if (SCF_EDA_PIN_OUT & el->flags) + cairo_set_source_rgb(cr, 1, 0, 1); + + 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); } else if (el->v == B->pins[SCF_EDA_Battery_NEG]->v) { - cairo_set_source_rgb(cr, 0, 0, 1); + cairo_set_source_rgb(cr, 0, 0, 0.9); cairo_set_line_width(cr, 2.5); } else if (SCF_EDA_PIN_IN & el->flags) cairo_set_source_rgb(cr, 0, 1, 0); - - else if (SCF_EDA_PIN_OUT & el->flags) - cairo_set_source_rgb(cr, 1, 0, 1); else cairo_set_source_rgb(cr, 1, 0.5, 0.1); -- 2.25.1