fix: an armed output highlights every other node's inputs, so the second click is visible
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
1 parent
84f310ee43
commit
6797b31d2e
1 file changed
+1
-1
+1
-1
@@ -3449,7 +3449,7 @@ void math_canvas_draw(GtkDrawingArea*, cairo_t* cr, int width, int height, gpoin
|
|||||||
double px = 0.0;
|
double px = 0.0;
|
||||||
double py = 0.0;
|
double py = 0.0;
|
||||||
math_input_pos(n, k, px, py);
|
math_input_pos(n, k, px, py);
|
||||||
const bool armed = d->pending_out >= 0 && static_cast<int>(i) > d->pending_out;
|
const bool armed = d->pending_out >= 0 && static_cast<int>(i) != d->pending_out;
|
||||||
cairo_set_source_rgb(cr, armed ? 1.0 : 0.45, armed ? 0.69 : 0.52, armed ? 0.13 : 0.62);
|
cairo_set_source_rgb(cr, armed ? 1.0 : 0.45, armed ? 0.69 : 0.52, armed ? 0.13 : 0.62);
|
||||||
cairo_rectangle(cr, px - kPort * 0.5, py - kPort * 0.5, kPort, kPort);
|
cairo_rectangle(cr, px - kPort * 0.5, py - kPort * 0.5, kPort, kPort);
|
||||||
cairo_fill(cr);
|
cairo_fill(cr);
|
||||||
|
|||||||
Reference in new issue
Block a user