summaryrefslogtreecommitdiffstats
path: root/gfx/cairo/dasharray-zero-gap.patch
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@wolfbeast.com>2019-11-06 21:06:15 +0100
committerwolfbeast <mcwerewolf@wolfbeast.com>2019-11-07 14:49:48 +0100
commit7efd71616ec5efedbe626a986a707c35d3cac323 (patch)
tree0223e8271d9d18763efd743f43f98b8b8b9e5c2e /gfx/cairo/dasharray-zero-gap.patch
parentbbc2206a0fda053a6f5071b457bd209dab9ed268 (diff)
downloadUXP-7efd71616ec5efedbe626a986a707c35d3cac323.tar
UXP-7efd71616ec5efedbe626a986a707c35d3cac323.tar.gz
UXP-7efd71616ec5efedbe626a986a707c35d3cac323.tar.lz
UXP-7efd71616ec5efedbe626a986a707c35d3cac323.tar.xz
UXP-7efd71616ec5efedbe626a986a707c35d3cac323.zip
Issue #1274 - Part 1: Adopt the cairo version as our own.
- Move header licensing from tri-license to MPL 2.0. MPL-compatible other licensing has been retained where originally present. - Remove individual superseded licensing terms. - Remove patches, outdated readmes & incomplete patch summaries. - Remove incomplete cairo release notes (only went up to 1.6.4 anyway). - Rewrite COPYING to indicate the current state of the library in tree.
Diffstat (limited to 'gfx/cairo/dasharray-zero-gap.patch')
-rw-r--r--gfx/cairo/dasharray-zero-gap.patch60
1 files changed, 0 insertions, 60 deletions
diff --git a/gfx/cairo/dasharray-zero-gap.patch b/gfx/cairo/dasharray-zero-gap.patch
deleted file mode 100644
index e26580ae1..000000000
--- a/gfx/cairo/dasharray-zero-gap.patch
+++ /dev/null
@@ -1,60 +0,0 @@
-diff --git a/gfx/cairo/cairo/src/cairo-quartz-surface.c b/gfx/cairo/cairo/src/cairo-quartz-surface.c
---- a/gfx/cairo/cairo/src/cairo-quartz-surface.c
-+++ b/gfx/cairo/cairo/src/cairo-quartz-surface.c
-@@ -2573,29 +2573,43 @@ static cairo_int_status_t
-
- if (style->dash && style->num_dashes) {
- #define STATIC_DASH 32
- cairo_quartz_float_t sdash[STATIC_DASH];
- cairo_quartz_float_t *fdash = sdash;
- unsigned int max_dashes = style->num_dashes;
- unsigned int k;
-
-- if (style->num_dashes%2)
-- max_dashes *= 2;
-- if (max_dashes > STATIC_DASH)
-- fdash = _cairo_malloc_ab (max_dashes, sizeof (cairo_quartz_float_t));
-- if (fdash == NULL)
-- return _cairo_error (CAIRO_STATUS_NO_MEMORY);
--
-- for (k = 0; k < max_dashes; k++)
-- fdash[k] = (cairo_quartz_float_t) style->dash[k % style->num_dashes];
--
-- CGContextSetLineDash (surface->cgContext, style->dash_offset, fdash, max_dashes);
-- if (fdash != sdash)
-- free (fdash);
-+ bool set_line_dash = false;
-+ if (style->num_dashes % 2 == 0) {
-+ for (k = 1; k < max_dashes; k++) {
-+ if (style->dash[k]) {
-+ set_line_dash = true;
-+ break;
-+ }
-+ }
-+ } else
-+ set_line_dash = true;
-+
-+ if (set_line_dash) {
-+ if (style->num_dashes%2)
-+ max_dashes *= 2;
-+ if (max_dashes > STATIC_DASH)
-+ fdash = _cairo_malloc_ab (max_dashes, sizeof (cairo_quartz_float_t));
-+ if (fdash == NULL)
-+ return _cairo_error (CAIRO_STATUS_NO_MEMORY);
-+
-+ for (k = 0; k < max_dashes; k++)
-+ fdash[k] = (cairo_quartz_float_t) style->dash[k % style->num_dashes];
-+
-+ CGContextSetLineDash (surface->cgContext, style->dash_offset, fdash, max_dashes);
-+ if (fdash != sdash)
-+ free (fdash);
-+ } else
-+ CGContextSetLineDash (state.context, 0, NULL, 0);
- } else
- CGContextSetLineDash (state.context, 0, NULL, 0);
-
-
- _cairo_quartz_cairo_path_to_quartz_context (path, state.context);
-
- _cairo_quartz_cairo_matrix_to_quartz (ctm, &strokeTransform);
- CGContextConcatCTM (state.context, strokeTransform);