summaryrefslogtreecommitdiffstats
path: root/gfx/cairo/buggy-repeat.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/buggy-repeat.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/buggy-repeat.patch')
-rw-r--r--gfx/cairo/buggy-repeat.patch39
1 files changed, 0 insertions, 39 deletions
diff --git a/gfx/cairo/buggy-repeat.patch b/gfx/cairo/buggy-repeat.patch
deleted file mode 100644
index 3d27b8f9b..000000000
--- a/gfx/cairo/buggy-repeat.patch
+++ /dev/null
@@ -1,39 +0,0 @@
-diff --git a/gfx/cairo/cairo/src/cairo-xlib-display.c b/gfx/cairo/cairo/src/cairo-xlib-display.c
---- a/gfx/cairo/cairo/src/cairo-xlib-display.c
-+++ b/gfx/cairo/cairo/src/cairo-xlib-display.c
-@@ -216,6 +216,8 @@ _cairo_xlib_display_get (Display *dpy)
- XExtCodes *codes;
- int major_unused, minor_unused;
-
-+ static int buggy_repeat_force = -1;
-+
- /* There is an apparent deadlock between this mutex and the
- * mutex for the display, but it's actually safe. For the
- * app to call XCloseDisplay() while any other thread is
-@@ -308,6 +310,26 @@ _cairo_xlib_display_get (Display *dpy)
- if (VendorRelease (dpy) <= 40500000)
- display->buggy_repeat = TRUE;
- }
-+
-+ /* XXX workaround; see https://bugzilla.mozilla.org/show_bug.cgi?id=413583 */
-+ /* If buggy_repeat_force == -1, then initialize.
-+ * - set to -2, meaning "nothing was specified", and we trust the above detection.
-+ * - if MOZ_CAIRO_BUGGY_REPEAT is '0' (exactly), then force buggy repeat off
-+ * - if MOZ_CAIRO_BUGGY_REPEAT is '1' (exactly), then force buggy repeat on
-+ */
-+ if (buggy_repeat_force == -1) {
-+ const char *flag = getenv("MOZ_CAIRO_FORCE_BUGGY_REPEAT");
-+
-+ buggy_repeat_force = -2;
-+
-+ if (flag && flag[0] == '0')
-+ buggy_repeat_force = 0;
-+ else if (flag && flag[0] == '1')
-+ buggy_repeat_force = 1;
-+ }
-+
-+ if (buggy_repeat_force != -2)
-+ display->buggy_repeat = (buggy_repeat_force == 1);
-
- display->next = _cairo_xlib_display_list;
- _cairo_xlib_display_list = display;