mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-08 12:38:02 +02:00
xlib: Handle a1 image uploads through converter
Fixes test/large-source [xlib]
This commit is contained in:
parent
f979dd22d8
commit
f071958606
1 changed files with 3 additions and 1 deletions
|
|
@ -1154,7 +1154,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];
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue