default orientation for wire creation is manhattan (H-V). Lines still start oblique by default

This commit is contained in:
stefan schippers 2025-02-14 02:55:47 +01:00
parent 9fe67cd242
commit e9c927d882
1 changed files with 2 additions and 0 deletions

View File

@ -219,6 +219,7 @@ static void start_line(double mx, double my)
if(xctx->constr_mv == 1) my = xctx->my_double_save;
if(xctx->constr_mv == 2) mx = xctx->mx_double_save;
} else {
xctx->manhattan_lines = 0;
xctx->mx_double_save=mx;
xctx->my_double_save=my;
}
@ -245,6 +246,7 @@ static void start_wire(double mx, double my)
if(xctx->constr_mv == 1) my = xctx->my_double_save;
if(xctx->constr_mv == 2) mx = xctx->mx_double_save;
} else {
xctx->manhattan_lines = 1;
xctx->mx_double_save=mx;
xctx->my_double_save=my;
}