summaryrefslogtreecommitdiff
path: root/src/cairo-slope.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2009-08-11 13:43:32 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2009-08-29 08:08:33 +0100
commit3fcac1ef21de9526bc1abca902db5755abe463ae (patch)
tree0d80a2fdade69924a6d70de4190422aca764db09 /src/cairo-slope.c
parenta1e0c4b30980d624bb3e015b7dcf39b4a2ef8c56 (diff)
downloadcairo-3fcac1ef21de9526bc1abca902db5755abe463ae.tar.gz
[slope] Inline _cairo_slope_init()
Move the definition to a separate header file and allow callers to inline the simple function.
Diffstat (limited to 'src/cairo-slope.c')
-rw-r--r--src/cairo-slope.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/cairo-slope.c b/src/cairo-slope.c
index 15685b789..bb3b411e6 100644
--- a/src/cairo-slope.c
+++ b/src/cairo-slope.c
@@ -36,14 +36,7 @@
#include "cairoint.h"
-void
-_cairo_slope_init (cairo_slope_t *slope,
- const cairo_point_t *a,
- const cairo_point_t *b)
-{
- slope->dx = b->x - a->x;
- slope->dy = b->y - a->y;
-}
+#include "cairo-slope-private.h"
/* Compare two slopes. Slope angles begin at 0 in the direction of the
positive X axis and increase in the direction of the positive Y