summaryrefslogtreecommitdiff
path: root/src/cairo-path-stroke.c
diff options
context:
space:
mode:
authorhk57.kim <hk57.kim@samsung.com>2016-03-16 16:42:19 +0900
committerhk57.kim <hk57.kim@samsung.com>2016-03-16 16:42:19 +0900
commitaf39a3b110b53f9ab84de1a91483b5fc952ce6c0 (patch)
tree4556e9cd9ecfa282308bd796343a6634db83eadb /src/cairo-path-stroke.c
parentea5563808b7f553121fbed5bc6b4bf908b1a8c05 (diff)
downloadcairo-accepted/tizen/common/20160406.143944.tar.gz
cairo-accepted/tizen/common/20160406.143944.tar.bz2
cairo-accepted/tizen/common/20160406.143944.zip
Change-Id: Iff4a3ad9811ba4454be3e29d8876a5f3974f4c7f Signed-off-by: hk57.kim <hk57.kim@samsung.com>
Diffstat (limited to 'src/cairo-path-stroke.c')
-rw-r--r--src/cairo-path-stroke.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/cairo-path-stroke.c b/src/cairo-path-stroke.c
index 5c260c915..c3f022bd2 100644
--- a/src/cairo-path-stroke.c
+++ b/src/cairo-path-stroke.c
@@ -90,6 +90,8 @@ typedef struct cairo_stroker {
cairo_box_t bounds;
} cairo_stroker_t;
+/*
+ # to avoid warning : defined but not used [-Wunused-function]
static cairo_bool_t
_cairo_stroke_segment_intersect (cairo_point_t *p1, cairo_point_t *p2,
cairo_point_t *p3, cairo_point_t *p4,
@@ -117,7 +119,7 @@ _cairo_stroke_segment_intersect (cairo_point_t *p1, cairo_point_t *p2,
x = (pre * (x3 - x4) - (x1 - x2) * post) / d;
y = (pre * (y3 - y4) - (y1 - y2) * post) / d;
- /* check if x, y are within both segments */
+ // check if x, y are within both segments
if (x < MIN (x1, x2) || x > MAX (x1, x2) ||
x < MIN (x3, x4) || x > MAX (x3, x4))
return FALSE;
@@ -129,6 +131,7 @@ _cairo_stroke_segment_intersect (cairo_point_t *p1, cairo_point_t *p2,
p->y = _cairo_fixed_from_double (y);
return TRUE;
}
+*/
static void
_cairo_stroker_limit (cairo_stroker_t *stroker,