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
bec48d8a
Commit
bec48d8a
authored
Dec 21, 2009
by
charras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
changed COPPER_LAYER and CMP_LAYER to LAYER_BACK and LAYER_FRONT
parent
6769e4c9
Changes
19
Hide whitespace changes
Inline
Side-by-side
Showing
19 changed files
with
52 additions
and
54 deletions
+52
-54
3d_draw.cpp
3d-viewer/3d_draw.cpp
+2
-2
pcbstruct.h
include/pcbstruct.h
+0
-2
autoplac.cpp
pcbnew/autoplac.cpp
+4
-4
class_board_item.cpp
pcbnew/class_board_item.cpp
+2
-2
class_module_transform_functions.cpp
pcbnew/class_module_transform_functions.cpp
+5
-5
class_pad.cpp
pcbnew/class_pad.cpp
+4
-4
class_pad.h
pcbnew/class_pad.h
+3
-3
class_pad_draw_functions.cpp
pcbnew/class_pad_draw_functions.cpp
+6
-6
class_track.h
pcbnew/class_track.h
+1
-1
dialog_SVG_print.cpp
pcbnew/dialog_SVG_print.cpp
+1
-1
dialog_layers_setup.cpp
pcbnew/dialog_layers_setup.cpp
+5
-5
dialog_pad_properties.cpp
pcbnew/dialog_pad_properties.cpp
+5
-5
export_gencad.cpp
pcbnew/export_gencad.cpp
+2
-2
gen_modules_placefile.cpp
pcbnew/gen_modules_placefile.cpp
+2
-2
gpcb_exchange.cpp
pcbnew/gpcb_exchange.cpp
+2
-2
muonde.cpp
pcbnew/muonde.cpp
+1
-1
pcbplot.cpp
pcbnew/pcbplot.cpp
+1
-1
plot_rtn.cpp
pcbnew/plot_rtn.cpp
+4
-4
tracepcb.cpp
pcbnew/tracepcb.cpp
+2
-2
No files found.
3d-viewer/3d_draw.cpp
View file @
bec48d8a
...
...
@@ -817,8 +817,8 @@ void D_PAD::Draw3D( Pcb3D_GLCanvas* glcanvas )
glNormal3f
(
0.0
,
0.0
,
1.0
);
// Normal is Z axis
nlmax
=
g_Parm_3D_Visu
.
m_Layers
-
1
;
Oncu
=
(
m_Masque_Layer
&
CUIVRE_LAYER
)
?
TRUE
:
FALSE
;
Oncmp
=
(
m_Masque_Layer
&
CMP_LAYER
)
?
TRUE
:
FALSE
;
Oncu
=
(
m_Masque_Layer
&
LAYER_BACK
)
?
TRUE
:
FALSE
;
Oncmp
=
(
m_Masque_Layer
&
LAYER_FRONT
)
?
TRUE
:
FALSE
;
Both
=
Oncu
&&
Oncmp
;
switch
(
m_PadShape
&
0x7F
)
...
...
include/pcbstruct.h
View file @
bec48d8a
...
...
@@ -75,7 +75,6 @@
#define LAYER_BACK (1 << LAYER_N_BACK) ///< bit mask for copper layer
#define CUIVRE_LAYER (1 << LAYER_N_BACK) ///< bit mask for copper layer
#define LAYER_2 (1 << LAYER_N_2) ///< bit mask for layer 2
#define LAYER_3 (1 << LAYER_N_3) ///< bit mask for layer 3
#define LAYER_4 (1 << LAYER_N_4) ///< bit mask for layer 4
...
...
@@ -90,7 +89,6 @@
#define LAYER_13 (1 << LAYER_N_13) ///< bit mask for layer 13
#define LAYER_14 (1 << LAYER_N_14) ///< bit mask for layer 14
#define LAYER_15 (1 << LAYER_N_15) ///< bit mask for layer 15
#define CMP_LAYER (1 << LAYER_N_FRONT) ///< bit mask for component layer
#define LAYER_FRONT (1 << LAYER_N_FRONT) ///< bit mask for component layer
#define ADHESIVE_LAYER_CU (1 << ADHESIVE_N_CU)
#define ADHESIVE_LAYER_CMP (1 << ADHESIVE_N_CMP)
...
...
pcbnew/autoplac.cpp
View file @
bec48d8a
...
...
@@ -526,9 +526,9 @@ void WinEDA_PcbFrame::GenModuleOnBoard( MODULE* Module )
masque_layer
=
0
;
if
(
Module
->
GetLayer
()
==
LAYER_N_FRONT
)
masque_layer
=
CMP_LAYER
;
masque_layer
=
LAYER_FRONT
;
if
(
Module
->
GetLayer
()
==
LAYER_N_BACK
)
masque_layer
=
CUIVRE_LAYER
;
masque_layer
=
LAYER_BACK
;
TraceFilledRectangle
(
GetBoard
(),
ox
,
oy
,
fx
,
fy
,
masque_layer
,
CELL_is_MODULE
,
WRITE_OR_CELL
);
...
...
@@ -602,9 +602,9 @@ int WinEDA_PcbFrame::RecherchePlacementModule( MODULE* Module, wxDC* DC )
if
(
Nb_Sides
==
TWO_SIDES
)
{
D_PAD
*
Pad
;
int
masque_otherlayer
;
masque_otherlayer
=
CUIVRE_LAYER
;
masque_otherlayer
=
LAYER_BACK
;
if
(
Module
->
GetLayer
()
==
LAYER_N_BACK
)
masque_otherlayer
=
CMP_LAYER
;
masque_otherlayer
=
LAYER_FRONT
;
for
(
Pad
=
Module
->
m_Pads
;
Pad
!=
NULL
;
Pad
=
Pad
->
Next
()
)
{
...
...
pcbnew/class_board_item.cpp
View file @
bec48d8a
...
...
@@ -65,9 +65,9 @@ wxString BOARD_ITEM::MenuText( const BOARD* aPcb ) const
<<
wxT
(
"
\"
("
);
if
(
(
pad
->
m_Masque_Layer
&
ALL_CU_LAYERS
)
==
ALL_CU_LAYERS
)
text
<<
_
(
"all copper layers"
);
else
if
(
(
pad
->
m_Masque_Layer
&
CUIVRE_LAYER
)
==
CUIVRE_LAYER
)
else
if
(
(
pad
->
m_Masque_Layer
&
LAYER_BACK
)
==
LAYER_BACK
)
text
<<
aPcb
->
GetLayerName
(
LAYER_N_BACK
).
Trim
();
else
if
(
(
pad
->
m_Masque_Layer
&
CMP_LAYER
)
==
CMP_LAYER
)
else
if
(
(
pad
->
m_Masque_Layer
&
LAYER_FRONT
)
==
LAYER_FRONT
)
text
<<
aPcb
->
GetLayerName
(
LAYER_N_FRONT
);
else
text
<<
_
(
"???"
);
text
<<
_
(
") of "
)
<<
(
(
MODULE
*
)
GetParent
()
)
->
GetReference
();
...
...
pcbnew/class_module_transform_functions.cpp
View file @
bec48d8a
...
...
@@ -79,17 +79,17 @@ static int ChangeSideMaskLayer( int masque )
{
int
newmasque
;
newmasque
=
masque
&
~
(
CUIVRE_LAYER
|
CMP_LAYER
|
newmasque
=
masque
&
~
(
LAYER_BACK
|
LAYER_FRONT
|
SILKSCREEN_LAYER_CU
|
SILKSCREEN_LAYER_CMP
|
ADHESIVE_LAYER_CU
|
ADHESIVE_LAYER_CMP
|
SOLDERMASK_LAYER_CU
|
SOLDERMASK_LAYER_CMP
|
SOLDERPASTE_LAYER_CU
|
SOLDERPASTE_LAYER_CMP
|
ADHESIVE_LAYER_CU
|
ADHESIVE_LAYER_CMP
);
if
(
masque
&
CUIVRE_LAYER
)
newmasque
|=
CMP_LAYER
;
if
(
masque
&
CMP_LAYER
)
newmasque
|=
CUIVRE_LAYER
;
if
(
masque
&
LAYER_BACK
)
newmasque
|=
LAYER_FRONT
;
if
(
masque
&
LAYER_FRONT
)
newmasque
|=
LAYER_BACK
;
if
(
masque
&
SILKSCREEN_LAYER_CU
)
newmasque
|=
SILKSCREEN_LAYER_CMP
;
...
...
pcbnew/class_pad.cpp
View file @
bec48d8a
...
...
@@ -643,11 +643,11 @@ void D_PAD::DisplayInfo( WinEDA_DrawFrame* frame )
}
else
{
#define INTERIOR_COPPER (ALL_CU_LAYERS & ~(
CUIVRE_LAYER | CMP_LAYER
))
#define INTERIOR_COPPER (ALL_CU_LAYERS & ~(
LAYER_BACK | LAYER_FRONT
))
static
const
wxChar
*
andInternal
=
_
(
" & int"
);
if
(
(
m_Masque_Layer
&
(
CUIVRE_LAYER
|
CMP_LAYER
))
==
CUIVRE_LAYER
)
if
(
(
m_Masque_Layer
&
(
LAYER_BACK
|
LAYER_FRONT
))
==
LAYER_BACK
)
{
layerInfo
=
board
->
GetLayerName
(
LAYER_N_BACK
);
...
...
@@ -655,7 +655,7 @@ void D_PAD::DisplayInfo( WinEDA_DrawFrame* frame )
layerInfo
+=
andInternal
;
}
else
if
(
(
m_Masque_Layer
&
(
CUIVRE_LAYER
|
CMP_LAYER
))
==
(
CUIVRE_LAYER
|
CMP_LAYER
)
)
else
if
(
(
m_Masque_Layer
&
(
LAYER_BACK
|
LAYER_FRONT
))
==
(
LAYER_BACK
|
LAYER_FRONT
)
)
{
layerInfo
=
board
->
GetLayerName
(
LAYER_N_BACK
)
+
wxT
(
", "
)
+
board
->
GetLayerName
(
LAYER_N_FRONT
);
...
...
@@ -664,7 +664,7 @@ void D_PAD::DisplayInfo( WinEDA_DrawFrame* frame )
layerInfo
+=
andInternal
;
}
else
if
(
(
m_Masque_Layer
&
(
CUIVRE_LAYER
|
CMP_LAYER
))
==
CMP_LAYER
)
else
if
(
(
m_Masque_Layer
&
(
LAYER_BACK
|
LAYER_FRONT
))
==
LAYER_FRONT
)
{
layerInfo
=
board
->
GetLayerName
(
LAYER_N_FRONT
);
...
...
pcbnew/class_pad.h
View file @
bec48d8a
...
...
@@ -16,13 +16,13 @@ class Pcb3D_GLCanvas;
SOLDERMASK_LAYER_CMP
// PAD_CONN:
#define PAD_CONN_DEFAULT_LAYERS
CMP_LAYER
| SOLDERPASTE_LAYER_CMP | SOLDERMASK_LAYER_CMP
#define PAD_CONN_DEFAULT_LAYERS
LAYER_FRONT
| SOLDERPASTE_LAYER_CMP | SOLDERMASK_LAYER_CMP
// PAD_SMD:
#define PAD_SMD_DEFAULT_LAYERS
CMP_LAYER
| SOLDERMASK_LAYER_CMP
#define PAD_SMD_DEFAULT_LAYERS
LAYER_FRONT
| SOLDERMASK_LAYER_CMP
//PAD_HOLE_NOT_PLATED:
#define PAD_HOLE_NOT_PLATED_DEFAULT_LAYERS
CUIVRE_LAYER
| SILKSCREEN_LAYER_CMP | \
#define PAD_HOLE_NOT_PLATED_DEFAULT_LAYERS
LAYER_BACK
| SILKSCREEN_LAYER_CMP | \
SOLDERMASK_LAYER_CU | SOLDERMASK_LAYER_CMP
...
...
pcbnew/class_pad_draw_functions.cpp
View file @
bec48d8a
...
...
@@ -48,10 +48,10 @@ void D_PAD::Draw( WinEDA_DrawPanel* panel, wxDC* DC, int draw_mode,
fillpad
=
0
;
#endif
if
(
m_Masque_Layer
&
CMP_LAYER
)
if
(
m_Masque_Layer
&
LAYER_FRONT
)
color
=
g_PadCMPColor
;
if
(
m_Masque_Layer
&
CUIVRE_LAYER
)
if
(
m_Masque_Layer
&
LAYER_BACK
)
color
|=
g_PadCUColor
;
if
(
color
==
0
)
/* Not on copper layer */
...
...
@@ -133,9 +133,9 @@ void D_PAD::Draw( WinEDA_DrawPanel* panel, wxDC* DC, int draw_mode,
// or the current layer is one of said 2 external copper layers,
// then highlight only the current layer.
if
(
(
(
1
<<
routeTop
)
|
(
1
<<
routeBot
)
)
==
(
CUIVRE_LAYER
|
CMP_LAYER
)
==
(
LAYER_BACK
|
LAYER_FRONT
)
||
(
(
1
<<
screen
->
m_Active_Layer
)
&
(
CUIVRE_LAYER
|
CMP_LAYER
)
)
)
&
(
LAYER_BACK
|
LAYER_FRONT
)
)
)
{
if
(
!
IsOnLayer
(
screen
->
m_Active_Layer
)
)
{
...
...
@@ -431,11 +431,11 @@ void D_PAD::Draw( WinEDA_DrawPanel* panel, wxDC* DC, int draw_mode,
dx0
=
MIN
(
dx0
,
dy0
);
int
nc_color
=
BLUE
;
if
(
m_Masque_Layer
&
CMP_LAYER
)
/* Draw \ */
if
(
m_Masque_Layer
&
LAYER_FRONT
)
/* Draw \ */
GRLine
(
&
panel
->
m_ClipBox
,
DC
,
cx0
-
dx0
,
cy0
-
dx0
,
cx0
+
dx0
,
cy0
+
dx0
,
0
,
nc_color
);
if
(
m_Masque_Layer
&
CUIVRE_LAYER
)
/* Draw / */
if
(
m_Masque_Layer
&
LAYER_BACK
)
/* Draw / */
GRLine
(
&
panel
->
m_ClipBox
,
DC
,
cx0
+
dx0
,
cy0
-
dx0
,
cx0
-
dx0
,
cy0
+
dx0
,
0
,
nc_color
);
}
...
...
pcbnew/class_track.h
View file @
bec48d8a
...
...
@@ -194,7 +194,7 @@ public:
* Function ReturnMaskLayer
* returns a "layer mask", which is a bitmap of all layers on which the
* TRACK segment or SEGVIA physically resides.
* @return int - a layer mask, see pcbstruct.h's
CUIVRE_LAYER
, etc.
* @return int - a layer mask, see pcbstruct.h's
LAYER_BACK
, etc.
*/
int
ReturnMaskLayer
();
...
...
pcbnew/dialog_SVG_print.cpp
View file @
bec48d8a
...
...
@@ -30,7 +30,7 @@
static
int
s_PrintPenMinWidth
=
1
;
static
bool
s_Print_Frame_Ref
=
true
;
static
int
s_PlotBlackAndWhite
=
0
;
static
long
s_SelectedLayers
=
CUIVRE_LAYER
|
CMP_LAYER
|
static
long
s_SelectedLayers
=
LAYER_BACK
|
LAYER_FRONT
|
SILKSCREEN_LAYER_CMP
|
SILKSCREEN_LAYER_CU
;
class
DIALOG_SVG_PRINT
:
public
DIALOG_SVG_PRINT_base
...
...
pcbnew/dialog_layers_setup.cpp
View file @
bec48d8a
...
...
@@ -175,19 +175,19 @@ static const int presets[] =
0
,
// shift the array index up by one, matches with "Custom".
// "Two layers, parts on Front only"
EDGE_LAYER
|
CMP_LAYER
|
CUIVRE_LAYER
|
FRONT_AUX
,
EDGE_LAYER
|
LAYER_FRONT
|
LAYER_BACK
|
FRONT_AUX
,
// "Two layers, parts on Back only",
EDGE_LAYER
|
CMP_LAYER
|
CUIVRE_LAYER
|
BACK_AUX
,
EDGE_LAYER
|
LAYER_FRONT
|
LAYER_BACK
|
BACK_AUX
,
// "Two layers, parts on Front and Back",
EDGE_LAYER
|
CMP_LAYER
|
CUIVRE_LAYER
|
BACK_AUX
|
FRONT_AUX
,
EDGE_LAYER
|
LAYER_FRONT
|
LAYER_BACK
|
BACK_AUX
|
FRONT_AUX
,
// "Four layers, parts on Front only"
EDGE_LAYER
|
CMP_LAYER
|
CUIVRE_LAYER
|
LAYER_2
|
LAYER_3
|
FRONT_AUX
,
EDGE_LAYER
|
LAYER_FRONT
|
LAYER_BACK
|
LAYER_2
|
LAYER_3
|
FRONT_AUX
,
// "Four layers, parts on Front and Back"
EDGE_LAYER
|
CMP_LAYER
|
CUIVRE_LAYER
|
LAYER_2
|
LAYER_3
|
FRONT_AUX
|
BACK_AUX
,
EDGE_LAYER
|
LAYER_FRONT
|
LAYER_BACK
|
LAYER_2
|
LAYER_3
|
FRONT_AUX
|
BACK_AUX
,
// "All layers on",
ALL_LAYERS
,
...
...
pcbnew/dialog_pad_properties.cpp
View file @
bec48d8a
...
...
@@ -381,8 +381,8 @@ void DIALOG_PAD_PROPERTIES::SetPadLayersList( long layer_mask )
* @param layer_mask = pad layer mask (ORed layers bit mask)
*/
{
m_PadLayerCu
->
SetValue
(
(
layer_mask
&
CUIVRE_LAYER
)
);
m_PadLayerCmp
->
SetValue
(
(
layer_mask
&
CMP_LAYER
)
);
m_PadLayerCu
->
SetValue
(
(
layer_mask
&
LAYER_BACK
)
);
m_PadLayerCmp
->
SetValue
(
(
layer_mask
&
LAYER_FRONT
)
);
m_PadLayerAdhCmp
->
SetValue
(
(
layer_mask
&
ADHESIVE_LAYER_CMP
)
);
m_PadLayerAdhCu
->
SetValue
(
(
layer_mask
&
ADHESIVE_LAYER_CU
)
);
...
...
@@ -488,10 +488,10 @@ void DIALOG_PAD_PROPERTIES::PadPropertiesAccept( wxCommandEvent& event )
PadLayerMask
=
0
;
if
(
m_PadLayerCu
->
GetValue
()
)
PadLayerMask
|=
CUIVRE_LAYER
;
PadLayerMask
|=
LAYER_BACK
;
if
(
m_PadLayerCmp
->
GetValue
()
)
PadLayerMask
|=
CMP_LAYER
;
if
(
(
PadLayerMask
&
(
CUIVRE_LAYER
|
CMP_LAYER
)
)
==
(
CUIVRE_LAYER
|
CMP_LAYER
)
)
PadLayerMask
|=
LAYER_FRONT
;
if
(
(
PadLayerMask
&
(
LAYER_BACK
|
LAYER_FRONT
)
)
==
(
LAYER_BACK
|
LAYER_FRONT
)
)
PadLayerMask
|=
ALL_CU_LAYERS
;
if
(
m_PadLayerAdhCmp
->
GetValue
()
)
PadLayerMask
|=
ADHESIVE_LAYER_CMP
;
...
...
pcbnew/export_gencad.cpp
View file @
bec48d8a
...
...
@@ -351,14 +351,14 @@ void CreateShapesSection( FILE* file, BOARD* pcb )
for
(
pad
=
module
->
m_Pads
;
pad
!=
NULL
;
pad
=
pad
->
Next
()
)
{
layer
=
"ALL"
;
if
(
(
pad
->
m_Masque_Layer
&
ALL_CU_LAYERS
)
==
CUIVRE_LAYER
)
if
(
(
pad
->
m_Masque_Layer
&
ALL_CU_LAYERS
)
==
LAYER_BACK
)
{
if
(
module
->
GetLayer
()
==
LAYER_N_FRONT
)
layer
=
"BOTTOM"
;
else
layer
=
"TOP"
;
}
else
if
(
(
pad
->
m_Masque_Layer
&
ALL_CU_LAYERS
)
==
CMP_LAYER
)
else
if
(
(
pad
->
m_Masque_Layer
&
ALL_CU_LAYERS
)
==
LAYER_FRONT
)
{
if
(
module
->
GetLayer
()
==
LAYER_N_FRONT
)
layer
=
"TOP"
;
...
...
pcbnew/gen_modules_placefile.cpp
View file @
bec48d8a
...
...
@@ -434,9 +434,9 @@ void WinEDA_PcbFrame::GenModuleReport( wxCommandEvent& event )
fputs
(
line
,
rptfile
);
int
layer
=
0
;
if
(
pad
->
m_Masque_Layer
&
CUIVRE_LAYER
)
if
(
pad
->
m_Masque_Layer
&
LAYER_BACK
)
layer
=
1
;
if
(
pad
->
m_Masque_Layer
&
CMP_LAYER
)
if
(
pad
->
m_Masque_Layer
&
LAYER_FRONT
)
layer
|=
2
;
const
char
*
layer_name
[
4
]
=
{
"??? "
,
"copper"
,
"component"
,
"all"
};
sprintf
(
line
,
"Layer %s
\n
"
,
layer_name
[
layer
]
);
...
...
pcbnew/gpcb_exchange.cpp
View file @
bec48d8a
...
...
@@ -317,12 +317,12 @@ bool MODULE::Read_GPCB_Descr( const wxString& CmpFullFileName )
{
// format: Pad [x1 y1 x2 y2 thickness clearance mask "name" "pad_number" flags]
Pad
=
new
D_PAD
(
this
);
Pad
->
m_PadShape
=
PAD_RECT
;
Pad
->
m_Masque_Layer
=
CMP_LAYER
|
SOLDERMASK_LAYER_CMP
|
SOLDERPASTE_LAYER_CMP
;
Pad
->
m_Masque_Layer
=
LAYER_FRONT
|
SOLDERMASK_LAYER_CMP
|
SOLDERPASTE_LAYER_CMP
;
// Set shape from flags
iflgidx
=
params
.
GetCount
()
-
2
;
if
(
TestFlags
(
params
[
iflgidx
],
0x0080
,
wxT
(
"onsolder"
)
)
)
Pad
->
m_Masque_Layer
=
CUIVRE_LAYER
|
SOLDERMASK_LAYER_CU
|
SOLDERPASTE_LAYER_CU
;
Pad
->
m_Masque_Layer
=
LAYER_BACK
|
SOLDERMASK_LAYER_CU
|
SOLDERPASTE_LAYER_CU
;
for
(
unsigned
ii
=
0
;
ii
<
5
;
ii
++
)
{
...
...
pcbnew/muonde.cpp
View file @
bec48d8a
...
...
@@ -595,7 +595,7 @@ MODULE* WinEDA_PcbFrame::Create_MuWaveBasicShape( const wxString& name,
pad
->
m_Pos
=
Module
->
m_Pos
;
pad
->
m_PadShape
=
PAD_RECT
;
pad
->
m_Attribut
=
PAD_SMD
;
pad
->
m_Masque_Layer
=
CMP_LAYER
;
pad
->
m_Masque_Layer
=
LAYER_FRONT
;
Line
.
Printf
(
wxT
(
"%d"
),
pad_num
);
pad
->
SetPadName
(
Line
);
pad_num
++
;
...
...
pcbnew/pcbplot.cpp
View file @
bec48d8a
...
...
@@ -43,7 +43,7 @@ PCB_Plot_Options::PCB_Plot_Options()
PlotScaleOpt
=
1
;
}
static
long
s_SelectedLayers
=
CUIVRE_LAYER
|
CMP_LAYER
|
static
long
s_SelectedLayers
=
LAYER_BACK
|
LAYER_FRONT
|
SILKSCREEN_LAYER_CMP
|
SILKSCREEN_LAYER_CU
;
static
bool
s_PlotOriginIsAuxAxis
=
FALSE
;
...
...
pcbnew/plot_rtn.cpp
View file @
bec48d8a
...
...
@@ -98,9 +98,9 @@ void WinEDA_BasePcbFrame::Plot_Serigraphie( PLOTTER* plotter,
if
(
(
pt_pad
->
m_Masque_Layer
&
masque_layer
)
==
0
/* Copper pads go on copper silk, component
* pads go on component silk */
&&
(
(
(
pt_pad
->
m_Masque_Layer
&
CUIVRE_LAYER
)
==
0
)
&&
(
(
(
pt_pad
->
m_Masque_Layer
&
LAYER_BACK
)
==
0
)
||
(
(
masque_layer
&
SILKSCREEN_LAYER_CU
)
==
0
)
)
&&
(
(
(
pt_pad
->
m_Masque_Layer
&
CMP_LAYER
)
==
0
)
&&
(
(
(
pt_pad
->
m_Masque_Layer
&
LAYER_FRONT
)
==
0
)
||
(
(
masque_layer
&
SILKSCREEN_LAYER_CMP
)
==
0
)
)
)
{
if
(
!
g_pcb_plot_options
.
Plot_Pads_All_Layers
)
...
...
@@ -921,9 +921,9 @@ void WinEDA_BasePcbFrame::Plot_Standard_Layer( PLOTTER* aPlotter,
// is SOLDERMASK_LAYER_CU or SOLDERMASK_LAYER_CMP,vias are drawn,
// if they are on an external copper layer
int
via_mask_layer
=
Via
->
ReturnMaskLayer
();
if
(
via_mask_layer
&
CUIVRE_LAYER
)
if
(
via_mask_layer
&
LAYER_BACK
)
via_mask_layer
|=
SOLDERMASK_LAYER_CU
;
if
(
via_mask_layer
&
CMP_LAYER
)
if
(
via_mask_layer
&
LAYER_FRONT
)
via_mask_layer
|=
SOLDERMASK_LAYER_CMP
;
if
(
(
via_mask_layer
&
aLayerMask
)
==
0
)
continue
;
...
...
pcbnew/tracepcb.cpp
View file @
bec48d8a
...
...
@@ -161,14 +161,14 @@ void BOARD::Draw( WinEDA_DrawPanel* aPanel, wxDC* DC,
{
if
(
module
->
GetLayer
()
==
LAYER_N_FRONT
)
display
=
FALSE
;
layerMask
&=
~
CMP_LAYER
;
layerMask
&=
~
LAYER_FRONT
;
}
if
(
!
DisplayOpt
.
Show_Modules_Cu
)
{
if
(
module
->
GetLayer
()
==
LAYER_N_BACK
)
display
=
FALSE
;
layerMask
&=
~
CUIVRE_LAYER
;
layerMask
&=
~
LAYER_BACK
;
}
if
(
display
)
...
...
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