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
c91b4ffb
Commit
c91b4ffb
authored
May 15, 2013
by
Maciej Suminski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Layer depth is set during items caching (so now they are rendered on proper layers).
parent
a43dd351
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
view.cpp
common/view/view.cpp
+3
-1
No files found.
common/view/view.cpp
View file @
c91b4ffb
...
@@ -420,6 +420,7 @@ void VIEW::redrawRect( const BOX2I& aRect )
...
@@ -420,6 +420,7 @@ void VIEW::redrawRect( const BOX2I& aRect )
{
{
drawItem
drawFunc
(
this
,
l
->
id
);
drawItem
drawFunc
(
this
,
l
->
id
);
if
(
!
m_useGroups
)
m_gal
->
SetLayerDepth
(
(
double
)
l
->
renderingOrder
);
m_gal
->
SetLayerDepth
(
(
double
)
l
->
renderingOrder
);
l
->
items
->
Query
(
aRect
,
drawFunc
);
l
->
items
->
Query
(
aRect
,
drawFunc
);
l
->
isDirty
=
false
;
l
->
isDirty
=
false
;
...
@@ -614,6 +615,7 @@ void VIEW::RecacheAllItems( bool aImmediately )
...
@@ -614,6 +615,7 @@ void VIEW::RecacheAllItems( bool aImmediately )
for
(
LayerMapIter
i
=
m_layers
.
begin
();
i
!=
m_layers
.
end
();
++
i
)
for
(
LayerMapIter
i
=
m_layers
.
begin
();
i
!=
m_layers
.
end
();
++
i
)
{
{
VIEW_LAYER
*
l
=
&
(
(
*
i
).
second
);
VIEW_LAYER
*
l
=
&
(
(
*
i
).
second
);
m_gal
->
SetLayerDepth
(
(
double
)
l
->
renderingOrder
);
recacheItem
visitor
(
this
,
m_gal
,
l
->
id
,
aImmediately
);
recacheItem
visitor
(
this
,
m_gal
,
l
->
id
,
aImmediately
);
l
->
items
->
Query
(
r
,
visitor
);
l
->
items
->
Query
(
r
,
visitor
);
}
}
...
...
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