From 0346611bd5b7637f9eda0e7b6ef91994af01060f Mon Sep 17 00:00:00 2001 From: Massimo Valentini Date: Fri, 19 Sep 2014 10:28:01 +0200 Subject: [PATCH] fix caps.xlib-fallback.rgb24 --- boilerplate/cairo-boilerplate.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/boilerplate/cairo-boilerplate.c b/boilerplate/cairo-boilerplate.c index 7fdbf79..b223708 100644 --- a/boilerplate/cairo-boilerplate.c +++ b/boilerplate/cairo-boilerplate.c @@ -348,6 +348,15 @@ _cairo_boilerplate_get_image_surface (cairo_surface_t *src, } cairo_destroy (cr); + if (format == CAIRO_FORMAT_RGB24) { + uint32_t *data = cairo_image_surface_get_data (image); + int stride = cairo_image_surface_get_stride (image) / sizeof (uint32_t); + int i, j; + + for (i = 0; i < height; ++i) + for (j = 0; j < width; ++j) + data[i * stride + j] |= 0xff000000; + } return image; } -- 1.9.3