From: yu.dongliang <18588496441@163.com> Date: Thu, 3 Jul 2025 08:52:48 +0000 (+0800) Subject: update 1st position of new component with UI X-Git-Url: http://baseworks.info/?a=commitdiff_plain;h=4f27d094cb8d03468b4efd14d16f4743379462c8;p=ses.git update 1st position of new component with UI --- 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;