mirror of
https://github.com/RTimothyEdwards/magic.git
synced 2026-08-22 14:17:43 +02:00
Quick fix of 'def write' issue with the nets extending beyond it's original shape in some cases. It would be good to analyze in more detail the use of the extlen variable
This commit is contained in:
+14
-4
@@ -963,8 +963,13 @@ defNetGeometryFunc(tile, plane, defdata)
|
||||
x1 = r.r_xbot * oscale;
|
||||
x2 = r.r_xtop * oscale;
|
||||
if (routeWidth == 0) routeWidth = h;
|
||||
extlen = (defdata->specialmode != DO_REGULAR) ?
|
||||
0 : (routeWidth * oscale) / 2;
|
||||
|
||||
extlen = 0;
|
||||
if(defdata->specialmode == DO_REGULAR)
|
||||
{
|
||||
x1 = x1 + (routeWidth/2*oscale);
|
||||
x2 = x2 - (routeWidth/2*oscale);
|
||||
}
|
||||
}
|
||||
else /* vertical orientation */
|
||||
{
|
||||
@@ -974,8 +979,13 @@ defNetGeometryFunc(tile, plane, defdata)
|
||||
y1 = r.r_ybot * oscale;
|
||||
y2 = r.r_ytop * oscale;
|
||||
if (routeWidth == 0) routeWidth = w;
|
||||
extlen = (defdata->specialmode != DO_REGULAR) ?
|
||||
0 : (routeWidth * oscale) / 2;
|
||||
|
||||
extlen = 0;
|
||||
if(defdata->specialmode == DO_REGULAR)
|
||||
{
|
||||
y1 = y1 + (routeWidth/2*oscale);
|
||||
y2 = y2 - (routeWidth/2*oscale);
|
||||
}
|
||||
}
|
||||
}
|
||||
else /* Type is a via */
|
||||
|
||||
Reference in New Issue
Block a user