Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
kicad-source-mirror
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
kicad-source-mirror
Commits
bd9a7d89
Commit
bd9a7d89
authored
Sep 04, 2009
by
charras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Pcbnew, fixed: plot error in outline mode for trapezoid pads (silk screen layers)
parent
79c9be25
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
common_plotPS_functions.cpp
common/common_plotPS_functions.cpp
+5
-2
No files found.
common/common_plotPS_functions.cpp
View file @
bd9a7d89
...
@@ -184,7 +184,8 @@ void PS_PLOTTER::arc( wxPoint centre, int StAngle, int EndAngle, int rayon,
...
@@ -184,7 +184,8 @@ void PS_PLOTTER::arc( wxPoint centre, int StAngle, int EndAngle, int rayon,
void
PS_PLOTTER
::
poly
(
int
nb_segm
,
int
*
coord
,
FILL_T
fill
,
int
width
)
void
PS_PLOTTER
::
poly
(
int
nb_segm
,
int
*
coord
,
FILL_T
fill
,
int
width
)
/*****************************************************************/
/*****************************************************************/
/* Draw a polygon ( a filled polygon if fill == 1 ) in POSTSCRIPT format
/** Function poly
* @brief Draw a polygon ( a filled polygon if fill == 1 ) in POSTSCRIPT format
* @param nb_segm = corner count
* @param nb_segm = corner count
* @param coord = corner list (a corner uses 2 int = X coordinate followed by Y coordinate
* @param coord = corner list (a corner uses 2 int = X coordinate followed by Y coordinate
* @param fill :if true : filled polygon
* @param fill :if true : filled polygon
...
@@ -212,7 +213,7 @@ void PS_PLOTTER::poly( int nb_segm, int* coord, FILL_T fill, int width )
...
@@ -212,7 +213,7 @@ void PS_PLOTTER::poly( int nb_segm, int* coord, FILL_T fill, int width )
fprintf
(
output_file
,
"%d %d lineto
\n
"
,
pos
.
x
,
pos
.
y
);
fprintf
(
output_file
,
"%d %d lineto
\n
"
,
pos
.
x
,
pos
.
y
);
}
}
//
Fermeture du polygone
//
Close path
fprintf
(
output_file
,
"poly%d
\n
"
,
fill
);
fprintf
(
output_file
,
"poly%d
\n
"
,
fill
);
}
}
...
@@ -558,5 +559,7 @@ void PS_PLOTTER::flash_pad_trapez( wxPoint centre, wxSize size, wxSize delta,
...
@@ -558,5 +559,7 @@ void PS_PLOTTER::flash_pad_trapez( wxPoint centre, wxSize size, wxSize delta,
coord
[
ii
*
2
]
+=
centre
.
x
;
coord
[
ii
*
2
]
+=
centre
.
x
;
coord
[
ii
*
2
+
1
]
+=
centre
.
y
;
coord
[
ii
*
2
+
1
]
+=
centre
.
y
;
}
}
coord
[
8
]
=
coord
[
0
];
coord
[
9
]
=
coord
[
1
];
poly
(
5
,
coord
,
modetrace
==
FILLED
?
FILLED_SHAPE
:
NO_FILL
);
poly
(
5
,
coord
,
modetrace
==
FILLED
?
FILLED_SHAPE
:
NO_FILL
);
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment