michael@0: commit 82aab44a9005047743538d52e9fbc27fd6ce408a michael@0: Author: Chris Wilson michael@0: Date: Fri Mar 19 17:23:20 2010 -0400 michael@0: michael@0: commit f07195860620959c27d43080a7b987e28222735a michael@0: michael@0: xlib: Handle a1 image uploads through converter michael@0: michael@0: Fixes test/large-source [xlib] michael@0: michael@0: diff --git a/src/cairo-xlib-surface.c b/src/cairo-xlib-surface.c michael@0: index 1a053d0..8f773b0 100644 michael@0: --- a/src/cairo-xlib-surface.c michael@0: +++ b/src/cairo-xlib-surface.c michael@0: @@ -1155,7 +1155,9 @@ _draw_image_surface (cairo_xlib_surface_t *surface, michael@0: int dither_adjustment = dither_row[x_off]; michael@0: int a, r, g, b; michael@0: michael@0: - if (image_masks.bpp <= 8) michael@0: + if (image_masks.bpp == 1) michael@0: + in_pixel = !! (((uint8_t*)row)[x/8] & (1 << (x & 7))); michael@0: + else if (image_masks.bpp <= 8) michael@0: in_pixel = ((uint8_t*)row)[x]; michael@0: else if (image_masks.bpp <= 16) michael@0: in_pixel = ((uint16_t*)row)[x];