From 4f27d094cb8d03468b4efd14d16f4743379462c8 Mon Sep 17 00:00:00 2001 From: "yu.dongliang" <18588496441@163.com> Date: Thu, 3 Jul 2025 16:52:48 +0800 Subject: [PATCH] update 1st position of new component with UI --- ses_ui.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ses_ui.c b/ses_ui.c index c2f1d09..4855d52 100644 --- a/ses_ui.c +++ b/ses_ui.c @@ -446,7 +446,7 @@ static int button_2pins_clicked(ses_ui_t* ui, int type) EDA_INST_ADD_COMPONENT(ui->f, c, type); c->x = 200 + rand() % 100; - c->y = 200 + rand() % 100; + c->y = 100; c->w = 24; c->h = 24; @@ -493,7 +493,7 @@ static int button_transistor_clicked(ses_ui_t* ui, int type) EDA_INST_ADD_COMPONENT(ui->f, c, type); c->x = 200 + rand() % 100; - c->y = 200 + rand() % 100; + c->y = 100; c->w = 24; c->h = 24; -- 2.25.1