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
578ecc6f
Commit
578ecc6f
authored
Dec 22, 2013
by
Maciej Suminski
Committed by
Wayne Stambaugh
Dec 22, 2013
Browse files
Options
Browse Files
Download
Plain Diff
Merge zone outline drawing fix request.
parents
702a90ad
b8b96f77
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
pcb_painter.cpp
pcbnew/pcb_painter.cpp
+9
-5
No files found.
pcbnew/pcb_painter.cpp
View file @
578ecc6f
...
@@ -755,11 +755,15 @@ void PCB_PAINTER::draw( const ZONE_CONTAINER* aZone )
...
@@ -755,11 +755,15 @@ void PCB_PAINTER::draw( const ZONE_CONTAINER* aZone )
for
(
int
i
=
0
;
i
<
outline
->
GetCornersCount
();
++
i
)
for
(
int
i
=
0
;
i
<
outline
->
GetCornersCount
();
++
i
)
{
{
corners
.
push_back
(
VECTOR2D
(
outline
->
GetPos
(
i
)
)
);
corners
.
push_back
(
VECTOR2D
(
outline
->
GetPos
(
i
)
)
);
if
(
outline
->
IsEndContour
(
i
)
)
{
// The last point for closing the polyline
corners
.
push_back
(
corners
[
0
]
);
m_gal
->
DrawPolyline
(
corners
);
corners
.
clear
();
}
}
}
// The last point for closing the polyline
corners
.
push_back
(
VECTOR2D
(
outline
->
GetPos
(
0
)
)
);
m_gal
->
DrawPolyline
(
corners
);
corners
.
clear
();
// Draw the filling
// Draw the filling
if
(
displayMode
!=
PCB_RENDER_SETTINGS
::
DZ_HIDE_FILLED
)
if
(
displayMode
!=
PCB_RENDER_SETTINGS
::
DZ_HIDE_FILLED
)
...
@@ -770,7 +774,7 @@ void PCB_PAINTER::draw( const ZONE_CONTAINER* aZone )
...
@@ -770,7 +774,7 @@ void PCB_PAINTER::draw( const ZONE_CONTAINER* aZone )
// Set up drawing options
// Set up drawing options
m_gal
->
SetFillColor
(
color
);
m_gal
->
SetFillColor
(
color
);
m_gal
->
SetLineWidth
(
aZone
->
Get
ThermalReliefCopperBridge
()
/
2.0
);
m_gal
->
SetLineWidth
(
aZone
->
Get
MinThickness
()
);
if
(
displayMode
==
PCB_RENDER_SETTINGS
::
DZ_SHOW_FILLED
)
if
(
displayMode
==
PCB_RENDER_SETTINGS
::
DZ_SHOW_FILLED
)
{
{
...
...
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