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
5275d4b5
Commit
5275d4b5
authored
Jul 09, 2014
by
Maciej Suminski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed minor bugs introduced with outline mode display for module texts and edges.
parent
778011a8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
9 deletions
+5
-9
pcb_painter.cpp
pcbnew/pcb_painter.cpp
+5
-9
No files found.
pcbnew/pcb_painter.cpp
View file @
5275d4b5
...
...
@@ -627,6 +627,7 @@ void PCB_PAINTER::draw( const DRAWSEGMENT* aSegment, int aLayer )
{
const
COLOR4D
&
color
=
m_pcbSettings
.
GetColor
(
aSegment
,
aSegment
->
GetLayer
()
);
m_gal
->
SetIsFill
(
false
);
m_gal
->
SetIsStroke
(
true
);
m_gal
->
SetStrokeColor
(
color
);
...
...
@@ -634,14 +635,11 @@ void PCB_PAINTER::draw( const DRAWSEGMENT* aSegment, int aLayer )
{
// Outline mode
m_gal
->
SetLineWidth
(
m_pcbSettings
.
m_outlineWidth
);
m_gal
->
SetIsFill
(
false
);
}
else
{
// Filled mode
m_gal
->
SetLineWidth
(
aSegment
->
GetWidth
()
);
m_gal
->
SetFillColor
(
color
);
m_gal
->
SetIsFill
(
true
);
}
switch
(
aSegment
->
GetShape
()
)
...
...
@@ -725,16 +723,15 @@ void PCB_PAINTER::draw( const TEXTE_PCB* aText, int aLayer )
{
// Outline mode
m_gal
->
SetLineWidth
(
m_pcbSettings
.
m_outlineWidth
);
m_gal
->
SetIsFill
(
false
);
}
else
{
// Filled mode
m_gal
->
SetLineWidth
(
aText
->
GetThickness
()
);
m_gal
->
SetFillColor
(
color
);
m_gal
->
SetIsFill
(
true
);
}
m_gal
->
SetIsFill
(
false
);
m_gal
->
SetIsStroke
(
true
);
m_gal
->
SetStrokeColor
(
color
);
m_gal
->
SetTextAttributes
(
aText
);
m_gal
->
StrokeText
(
aText
->
GetText
(),
position
,
orientation
);
...
...
@@ -754,16 +751,15 @@ void PCB_PAINTER::draw( const TEXTE_MODULE* aText, int aLayer )
{
// Outline mode
m_gal
->
SetLineWidth
(
m_pcbSettings
.
m_outlineWidth
);
m_gal
->
SetIsFill
(
false
);
}
else
{
// Filled mode
m_gal
->
SetLineWidth
(
aText
->
GetThickness
()
);
m_gal
->
SetFillColor
(
color
);
m_gal
->
SetIsFill
(
true
);
}
m_gal
->
SetIsFill
(
false
);
m_gal
->
SetIsStroke
(
true
);
m_gal
->
SetStrokeColor
(
color
);
m_gal
->
SetTextAttributes
(
aText
);
m_gal
->
StrokeText
(
aText
->
GetText
(),
position
,
orientation
);
...
...
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