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
387bbe2b
Commit
387bbe2b
authored
Oct 25, 2010
by
jean-pierre charras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Pcbnew: fixed bug 666210
parent
64be6fd2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
gr_basic.cpp
common/gr_basic.cpp
+11
-0
No files found.
common/gr_basic.cpp
View file @
387bbe2b
...
@@ -1901,12 +1901,23 @@ void GRSFilledRect( EDA_Rect* ClipBox, wxDC* DC,
...
@@ -1901,12 +1901,23 @@ void GRSFilledRect( EDA_Rect* ClipBox, wxDC* DC,
* too large coordinates (seems due to integer overflows in calculations)
* too large coordinates (seems due to integer overflows in calculations)
* Could be removed in some years, if become unnecessary.
* Could be removed in some years, if become unnecessary.
*/
*/
/* Note: aClipBox == NULL is legal, so if aClipBox == NULL,
* the polygon is drawn, but not clipped
*/
#include "SutherlandHodgmanClipPoly.h"
#include "SutherlandHodgmanClipPoly.h"
void
ClipAndDrawFilledPoly
(
EDA_Rect
*
aClipBox
,
void
ClipAndDrawFilledPoly
(
EDA_Rect
*
aClipBox
,
wxDC
*
aDC
,
wxDC
*
aDC
,
wxPoint
aPoints
[],
wxPoint
aPoints
[],
int
n
)
int
n
)
{
{
if
(
aClipBox
==
NULL
)
{
aDC
->
DrawPolygon
(
n
,
aPoints
);
return
;
}
// A clip box exists: clip and draw the polygon.
static
vector
<
wxPoint
>
clippedPolygon
;
static
vector
<
wxPoint
>
clippedPolygon
;
static
pointVector
inputPolygon
,
outputPolygon
;
static
pointVector
inputPolygon
,
outputPolygon
;
...
...
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