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
bb0f4b9a
Commit
bb0f4b9a
authored
Nov 06, 2013
by
Maciej Sumiński
Committed by
Dick Hollenbeck
Nov 06, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Patches one by Lorenzo, one by Orson
parent
eb125838
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
4 deletions
+9
-4
view.cpp
common/view/view.cpp
+1
-1
layers_id_colors_and_visibility.h
include/layers_id_colors_and_visibility.h
+0
-1
pcb_painter.cpp
pcbnew/pcb_painter.cpp
+7
-1
pcbframe.cpp
pcbnew/pcbframe.cpp
+1
-1
No files found.
common/view/view.cpp
View file @
bb0f4b9a
...
@@ -645,7 +645,7 @@ void VIEW::draw( VIEW_ITEM* aItem, bool aImmediate ) const
...
@@ -645,7 +645,7 @@ void VIEW::draw( VIEW_ITEM* aItem, bool aImmediate ) const
for
(
int
i
=
0
;
i
<
layers_count
;
++
i
)
for
(
int
i
=
0
;
i
<
layers_count
;
++
i
)
{
{
m_gal
->
SetLayerDepth
(
m_layers
.
at
(
i
).
renderingOrder
);
m_gal
->
SetLayerDepth
(
m_layers
.
at
(
layers
[
i
]
).
renderingOrder
);
draw
(
aItem
,
layers
[
i
],
aImmediate
);
draw
(
aItem
,
layers
[
i
],
aImmediate
);
}
}
}
}
...
...
include/layers_id_colors_and_visibility.h
View file @
bb0f4b9a
...
@@ -41,7 +41,6 @@ class BOARD;
...
@@ -41,7 +41,6 @@ class BOARD;
/* Layer identification (layer number) */
/* Layer identification (layer number) */
typedef
int
LAYER_NUM
;
typedef
int
LAYER_NUM
;
#define UNDEFINED_LAYER -1
#define UNDEFINED_LAYER -1
#define NO_LAYER 0
#define FIRST_LAYER 0
#define FIRST_LAYER 0
#define FIRST_COPPER_LAYER 0
#define FIRST_COPPER_LAYER 0
#define LAYER_N_BACK 0
#define LAYER_N_BACK 0
...
...
pcbnew/pcb_painter.cpp
View file @
bb0f4b9a
...
@@ -670,13 +670,19 @@ void PCB_PAINTER::draw( const DRAWSEGMENT* aSegment )
...
@@ -670,13 +670,19 @@ void PCB_PAINTER::draw( const DRAWSEGMENT* aSegment )
m_gal
->
SetFillColor
(
color
);
m_gal
->
SetFillColor
(
color
);
m_gal
->
Save
();
m_gal
->
Save
();
m_gal
->
Translate
(
VECTOR2D
(
aSegment
->
GetPosition
()
)
);
MODULE
*
module
=
aSegment
->
GetParentModule
();
MODULE
*
module
=
aSegment
->
GetParentModule
();
if
(
module
)
if
(
module
)
{
{
m_gal
->
Translate
(
module
->
GetPosition
()
);
m_gal
->
Rotate
(
-
module
->
GetOrientation
()
*
M_PI
/
1800.0
);
m_gal
->
Rotate
(
-
module
->
GetOrientation
()
*
M_PI
/
1800.0
);
}
}
else
{
// not tested
m_gal
->
Translate
(
aSegment
->
GetPosition
()
);
m_gal
->
Rotate
(
-
aSegment
->
GetAngle
()
*
M_PI
/
1800.0
);
}
std
::
copy
(
aSegment
->
GetPolyPoints
().
begin
(),
aSegment
->
GetPolyPoints
().
end
(),
std
::
copy
(
aSegment
->
GetPolyPoints
().
begin
(),
aSegment
->
GetPolyPoints
().
end
(),
std
::
back_inserter
(
pointsList
)
);
std
::
back_inserter
(
pointsList
)
);
...
...
pcbnew/pcbframe.cpp
View file @
bb0f4b9a
...
@@ -831,7 +831,7 @@ void PCB_EDIT_FRAME::setTopLayer( LAYER_NUM aLayer )
...
@@ -831,7 +831,7 @@ void PCB_EDIT_FRAME::setTopLayer( LAYER_NUM aLayer )
GetNetnameLayer
(
aLayer
),
ITEM_GAL_LAYER
(
VIAS_VISIBLE
),
GetNetnameLayer
(
aLayer
),
ITEM_GAL_LAYER
(
VIAS_VISIBLE
),
ITEM_GAL_LAYER
(
VIAS_HOLES_VISIBLE
),
ITEM_GAL_LAYER
(
PADS_VISIBLE
),
ITEM_GAL_LAYER
(
VIAS_HOLES_VISIBLE
),
ITEM_GAL_LAYER
(
PADS_VISIBLE
),
ITEM_GAL_LAYER
(
PADS_HOLES_VISIBLE
),
ITEM_GAL_LAYER
(
PADS_NETNAMES_VISIBLE
),
ITEM_GAL_LAYER
(
PADS_HOLES_VISIBLE
),
ITEM_GAL_LAYER
(
PADS_NETNAMES_VISIBLE
),
ITEM_GAL_LAYER
(
GP_OVERLAY
)
ITEM_GAL_LAYER
(
GP_OVERLAY
)
,
DRAW_N
};
};
for
(
unsigned
int
i
=
0
;
i
<
sizeof
(
layers
)
/
sizeof
(
LAYER_NUM
);
++
i
)
for
(
unsigned
int
i
=
0
;
i
<
sizeof
(
layers
)
/
sizeof
(
LAYER_NUM
);
++
i
)
...
...
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