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
d6292053
Commit
d6292053
authored
Dec 23, 2013
by
Marco Serantoni
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[MacOSX] Fixing Zone visualization and removing not working code
parent
c5031d3f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
20 deletions
+0
-20
gr_basic.cpp
common/gr_basic.cpp
+0
-20
No files found.
common/gr_basic.cpp
View file @
d6292053
...
@@ -599,25 +599,6 @@ void GRLineArray( EDA_RECT* aClipBox, wxDC* aDC, std::vector<wxPoint>& aLines,
...
@@ -599,25 +599,6 @@ void GRLineArray( EDA_RECT* aClipBox, wxDC* aDC, std::vector<wxPoint>& aLines,
{
{
GRSetColorPen
(
aDC
,
aColor
,
aWidth
);
GRSetColorPen
(
aDC
,
aColor
,
aWidth
);
#if defined( USE_WX_GRAPHICS_CONTEXT ) || defined(__WXMAC__)
wxGraphicsContext
*
gc
=
wxGraphicsContext
::
Create
(
aDC
);
wxASSERT
(
gc
);
gc
->
Clip
(
aClipBox
->
GetX
(),
aClipBox
->
GetY
(),
aClipBox
->
GetRight
(),
aClipBox
->
GetHeight
()
);
wxGraphicsPath
path
=
gc
->
CreatePath
();
for
(
unsigned
i
=
0
;
i
<
aLines
.
size
();
)
{
path
.
MoveToPoint
(
aLines
[
i
].
x
,
aLines
[
i
].
y
);
i
++
;
path
.
AddLineToPoint
(
aLines
[
i
].
x
,
aLines
[
i
].
y
);
i
++
;
}
gc
->
StrokePath
(
path
);
gc
->
ResetClip
();
delete
gc
;
#else
if
(
aClipBox
)
if
(
aClipBox
)
aClipBox
->
Inflate
(
aWidth
/
2
);
aClipBox
->
Inflate
(
aWidth
/
2
);
for
(
unsigned
i
=
0
;
i
<
aLines
.
size
();
i
+=
2
)
for
(
unsigned
i
=
0
;
i
<
aLines
.
size
();
i
+=
2
)
...
@@ -633,7 +614,6 @@ void GRLineArray( EDA_RECT* aClipBox, wxDC* aDC, std::vector<wxPoint>& aLines,
...
@@ -633,7 +614,6 @@ void GRLineArray( EDA_RECT* aClipBox, wxDC* aDC, std::vector<wxPoint>& aLines,
}
}
if
(
aClipBox
)
if
(
aClipBox
)
aClipBox
->
Inflate
(
-
aWidth
/
2
);
aClipBox
->
Inflate
(
-
aWidth
/
2
);
#endif
}
}
...
...
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