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
66453e3d
Commit
66453e3d
authored
Apr 09, 2013
by
Lorenzo Marcantonio
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed pad preview color
parent
42709330
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
dialog_pad_properties.cpp
pcbnew/dialogs/dialog_pad_properties.cpp
+7
-6
No files found.
pcbnew/dialogs/dialog_pad_properties.cpp
View file @
66453e3d
...
...
@@ -174,7 +174,7 @@ void DIALOG_PAD_PROPERTIES::OnPaintShowPanel( wxPaintEvent& event )
wxPaintDC
dc
(
m_panelShowPad
);
PAD_DRAWINFO
drawInfo
;
EDA_COLOR_T
color
=
ColorFromInt
(
0
);
// XXX EVIL merge
EDA_COLOR_T
color
=
BLACK
;
if
(
m_dummyPad
->
GetLayerMask
()
&
LAYER_FRONT
)
{
...
...
@@ -183,10 +183,12 @@ void DIALOG_PAD_PROPERTIES::OnPaintShowPanel( wxPaintEvent& event )
if
(
m_dummyPad
->
GetLayerMask
()
&
LAYER_BACK
)
{
color
=
Color
FromInt
(
color
|
m_board
->
GetVisibleElementColor
(
PAD_BK_VISIBLE
)
);
// XXX EVIL merge
color
=
Color
Mix
(
color
,
m_board
->
GetVisibleElementColor
(
PAD_BK_VISIBLE
)
);
}
if
(
color
==
0
)
// What could happen: the pad color is *actually* black, or no
// copper was selected
if
(
color
==
BLACK
)
color
=
LIGHTGRAY
;
drawInfo
.
m_Color
=
color
;
...
...
@@ -229,9 +231,8 @@ void DIALOG_PAD_PROPERTIES::OnPaintShowPanel( wxPaintEvent& event )
// Draw X and Y axis.
// this is particularly useful to show the reference position of pads
// with offset and no hole
int
width
=
0
;
GRLine
(
NULL
,
&
dc
,
-
dim
,
0
,
dim
,
0
,
width
,
BLUE
);
// X axis
GRLine
(
NULL
,
&
dc
,
0
,
-
dim
,
0
,
dim
,
width
,
BLUE
);
// Y axis
GRLine
(
NULL
,
&
dc
,
-
dim
,
0
,
dim
,
0
,
0
,
BLUE
);
// X axis
GRLine
(
NULL
,
&
dc
,
0
,
-
dim
,
0
,
dim
,
0
,
BLUE
);
// Y axis
event
.
Skip
();
}
...
...
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