Dear zathura community, after using zathura-pdf-mupdf in the last weeks I've only recently noticed that red and blue colors seems inverted. Can anyone confirm that?
It seems a recent regression of the 0.2.9 release, the attached patch in this email should fix the problem. Thank you in advance for your attention! Ciao, L.
$NetBSD$ Fix the colorspace. --- render.c.orig 2015-12-22 22:38:09.000000000 +0000 +++ render.c @@ -36,7 +36,7 @@ pdf_page_render_to_buffer(mupdf_document fz_irect irect = { .x1 = page_width, .y1 = page_height }; fz_rect rect = { .x1 = page_width, .y1 = page_height }; - fz_colorspace* colorspace = fz_device_rgb(mupdf_document->ctx); + fz_colorspace* colorspace = fz_device_bgr(mupdf_document->ctx); fz_pixmap* pixmap = fz_new_pixmap_with_bbox_and_data(mupdf_page->ctx, colorspace, &irect, image); fz_clear_pixmap_with_value(mupdf_page->ctx, pixmap, 0xFF);
_______________________________________________ zathura mailing list zathura@lists.pwmt.org https://lists.pwmt.org/mailman/listinfo/zathura