From 80a22c78a82db470cdda9b926df29d1d0b60f57b Mon Sep 17 00:00:00 2001 From: stefan schippers Date: Sun, 26 Jan 2025 17:44:00 +0100 Subject: [PATCH] comments --- src/callback.c | 1 - src/move.c | 5 ++--- src/xschem.h | 2 +- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/callback.c b/src/callback.c index 9683d003..2dcb533c 100644 --- a/src/callback.c +++ b/src/callback.c @@ -2472,7 +2472,6 @@ int rstate; /* (reduced state, without ShiftMask) */ } break; } - dbg(1, "ui_state=%d deltax=%g\n", xctx->ui_state, xctx->deltax); /* update status bar messages */ if(xctx->ui_state) { diff --git a/src/move.c b/src/move.c index 9ceb9177..aa81489d 100644 --- a/src/move.c +++ b/src/move.c @@ -944,7 +944,7 @@ void move_objects(int what, int merge, double dx, double dy) xctx->move_flip = 0;xctx->move_rot = 0; xctx->ui_state|=STARTMOVE; } - if(what & ABORT) /* draw objects while moving */ + if(what & ABORT) /* abort operation */ { xctx->paste_from = 0; draw_selection(xctx->gctiled,0); @@ -958,9 +958,8 @@ void move_objects(int what, int merge, double dx, double dy) xctx->ui_state &= ~STARTMOVE; update_symbol_bboxes(0, 0); } - if(what & RUBBER) /* abort operation */ + if(what & RUBBER) /* draw objects while moving */ { - xctx->x2=xctx->mousex_snap;xctx->y_2=xctx->mousey_snap; draw_selection(xctx->gctiled,0); xctx->deltax = xctx->x2-xctx->x1; xctx->deltay = xctx->y_2 - xctx->y_1; diff --git a/src/xschem.h b/src/xschem.h index 7087da37..04d95034 100644 --- a/src/xschem.h +++ b/src/xschem.h @@ -1018,6 +1018,7 @@ typedef struct { /* move.c */ double rx1, rx2, ry1, ry2; short move_rot; + double x1, y_1, x2, y_2, deltax, deltay; /* connect by kissing enable flag */ int connect_by_kissing; /* redraw_w_a_l_r_p_z_rubbers() */ @@ -1026,7 +1027,6 @@ typedef struct { int kissing; short move_flip; int manhattan_lines; - double x1, y_1, x2, y_2, deltax, deltay; int movelastsel; short rotatelocal; /* new_wire, new_line, new_rect*/