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
6cf04e68
Commit
6cf04e68
authored
Apr 17, 2013
by
Maciej Suminski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed drawing arcs in Cairo GAL.
parent
188ea1f5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
cairo_gal.cpp
common/gal/cairo/cairo_gal.cpp
+3
-0
No files found.
common/gal/cairo/cairo_gal.cpp
View file @
6cf04e68
...
@@ -29,6 +29,7 @@
...
@@ -29,6 +29,7 @@
#include <wx/log.h>
#include <wx/log.h>
#include <gal/cairo/cairo_gal.h>
#include <gal/cairo/cairo_gal.h>
#include <gal/definitions.h>
using
namespace
KiGfx
;
using
namespace
KiGfx
;
...
@@ -313,6 +314,8 @@ void CAIRO_GAL::DrawCircle( VECTOR2D aCenterPoint, double aRadius )
...
@@ -313,6 +314,8 @@ void CAIRO_GAL::DrawCircle( VECTOR2D aCenterPoint, double aRadius )
void
CAIRO_GAL
::
DrawArc
(
VECTOR2D
aCenterPoint
,
double
aRadius
,
double
aStartAngle
,
void
CAIRO_GAL
::
DrawArc
(
VECTOR2D
aCenterPoint
,
double
aRadius
,
double
aStartAngle
,
double
aEndAngle
)
double
aEndAngle
)
{
{
SWAP
(
aStartAngle
,
>
,
aEndAngle
);
cairo_new_sub_path
(
cairoImage
);
cairo_new_sub_path
(
cairoImage
);
cairo_arc
(
cairoImage
,
aCenterPoint
.
x
,
aCenterPoint
.
y
,
aRadius
,
aStartAngle
,
aEndAngle
);
cairo_arc
(
cairoImage
,
aCenterPoint
.
x
,
aCenterPoint
.
y
,
aRadius
,
aStartAngle
,
aEndAngle
);
...
...
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