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
5d8f7ba0
Commit
5d8f7ba0
authored
Mar 09, 2015
by
Eldar Khayrullin
Committed by
Maciej Suminski
Mar 09, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bugfix: cannot draw 180 degree arc in OpenGL canvas
parent
c9b9ccd2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
opengl_gal.cpp
common/gal/opengl/opengl_gal.cpp
+1
-1
No files found.
common/gal/opengl/opengl_gal.cpp
View file @
5d8f7ba0
...
@@ -368,7 +368,7 @@ void OPENGL_GAL::DrawArc( const VECTOR2D& aCenterPoint, double aRadius, double a
...
@@ -368,7 +368,7 @@ void OPENGL_GAL::DrawArc( const VECTOR2D& aCenterPoint, double aRadius, double a
VECTOR2D
p
(
cos
(
aStartAngle
)
*
aRadius
,
sin
(
aStartAngle
)
*
aRadius
);
VECTOR2D
p
(
cos
(
aStartAngle
)
*
aRadius
,
sin
(
aStartAngle
)
*
aRadius
);
double
alpha
;
double
alpha
;
for
(
alpha
=
aStartAngle
+
alphaIncrement
;
alpha
<
aEndAngle
;
alpha
+=
alphaIncrement
)
for
(
alpha
=
aStartAngle
+
alphaIncrement
;
alpha
<
=
aEndAngle
;
alpha
+=
alphaIncrement
)
{
{
VECTOR2D
p_next
(
cos
(
alpha
)
*
aRadius
,
sin
(
alpha
)
*
aRadius
);
VECTOR2D
p_next
(
cos
(
alpha
)
*
aRadius
,
sin
(
alpha
)
*
aRadius
);
DrawLine
(
p
,
p_next
);
DrawLine
(
p
,
p_next
);
...
...
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