diff options
author | Matt A. Tobin <mattatobin@localhost.localdomain> | 2018-02-02 04:16:08 -0500 |
---|---|---|
committer | Matt A. Tobin <mattatobin@localhost.localdomain> | 2018-02-02 04:16:08 -0500 |
commit | 5f8de423f190bbb79a62f804151bc24824fa32d8 (patch) | |
tree | 10027f336435511475e392454359edea8e25895d /gfx/cairo/handle-a1.patch | |
parent | 49ee0794b5d912db1f95dce6eb52d781dc210db5 (diff) | |
download | UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.gz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.lz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.xz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.zip |
Add m-esr52 at 52.6.0
Diffstat (limited to 'gfx/cairo/handle-a1.patch')
-rw-r--r-- | gfx/cairo/handle-a1.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/gfx/cairo/handle-a1.patch b/gfx/cairo/handle-a1.patch new file mode 100644 index 000000000..eaad3d69e --- /dev/null +++ b/gfx/cairo/handle-a1.patch @@ -0,0 +1,25 @@ +commit 82aab44a9005047743538d52e9fbc27fd6ce408a +Author: Chris Wilson <chris@chris-wilson.co.uk> +Date: Fri Mar 19 17:23:20 2010 -0400 + + commit f07195860620959c27d43080a7b987e28222735a + + xlib: Handle a1 image uploads through converter + + Fixes test/large-source [xlib] + +diff --git a/src/cairo-xlib-surface.c b/src/cairo-xlib-surface.c +index 1a053d0..8f773b0 100644 +--- a/src/cairo-xlib-surface.c ++++ b/src/cairo-xlib-surface.c +@@ -1155,7 +1155,9 @@ _draw_image_surface (cairo_xlib_surface_t *surface, + int dither_adjustment = dither_row[x_off]; + int a, r, g, b; + +- if (image_masks.bpp <= 8) ++ if (image_masks.bpp == 1) ++ in_pixel = !! (((uint8_t*)row)[x/8] & (1 << (x & 7))); ++ else if (image_masks.bpp <= 8) + in_pixel = ((uint8_t*)row)[x]; + else if (image_masks.bpp <= 16) + in_pixel = ((uint16_t*)row)[x]; |