_simplify_draw()
authoryu.dongliang <18588496441@163.com>
Fri, 20 Oct 2023 13:17:59 +0000 (21:17 +0800)
committeryu.dongliang <18588496441@163.com>
Fri, 20 Oct 2023 13:17:59 +0000 (21:17 +0800)
ses_step_simplify.c

index a6a86a3227a28978bdbdf6b573f71562c7c3e597..40d824fc0772cfb16925ab8ef3635e9d83f1c14f 100644 (file)
@@ -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);