pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

zathura-mupdf: Add a patch to fix the colorspace ( and regen patch-document.c)



Module Name:	pkgsrc-wip
Committed By:	Leonardo Taccari <leot%NetBSD.org@localhost>
Pushed By:	leot
Date:		Fri Jan 15 23:57:12 2016 +0100
Changeset:	5451bbef620dee1df758778d92c81588b4cf67e5

Modified Files:
	zathura-mupdf/distinfo
	zathura-mupdf/patches/patch-document.c
Added Files:
	zathura-mupdf/patches/patch-render.c

Log Message:
zathura-mupdf: Add a patch to fix the colorspace (and regen patch-document.c)

This seems a regression of the recent 0.2.9 release. In order to reproduce it
just open a PDF that contains color and you will notice that "red" and "blue"
are splitted.

XXX: I should report it upstream!

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=5451bbef620dee1df758778d92c81588b4cf67e5

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 zathura-mupdf/distinfo                 |  3 ++-
 zathura-mupdf/patches/patch-document.c |  2 +-
 zathura-mupdf/patches/patch-render.c   | 15 +++++++++++++++
 3 files changed, 18 insertions(+), 2 deletions(-)

diffs:
diff --git a/zathura-mupdf/distinfo b/zathura-mupdf/distinfo
index 2564178..e88845f 100644
--- a/zathura-mupdf/distinfo
+++ b/zathura-mupdf/distinfo
@@ -4,4 +4,5 @@ SHA1 (zathura-pdf-mupdf-0.2.9.tar.gz) = 55b47ed2962589eeef88168554aa5bd2f6557ed3
 RMD160 (zathura-pdf-mupdf-0.2.9.tar.gz) = 1a84d28e655bb05eddef857d46fa46f8a4d30456
 SHA512 (zathura-pdf-mupdf-0.2.9.tar.gz) = 09507df8fa568d64667e8456ba64cb94353322140cb37b2412b46cfdf443142b331d13ac3a5939b8635a185e08b44430578a7cf1d075b6be239cab01a0a4b883
 Size (zathura-pdf-mupdf-0.2.9.tar.gz) = 9909 bytes
-SHA1 (patch-document.c) = eaca6c9be80910d7f9bf22f561fb3acc2f7d4cbf
+SHA1 (patch-document.c) = dfef8e98cf6f5fbe65a904c7d53c369775b9f1b1
+SHA1 (patch-render.c) = 9726f68aeaca657cbf9205c786b0e32b42b36949
diff --git a/zathura-mupdf/patches/patch-document.c b/zathura-mupdf/patches/patch-document.c
index d86e431..23e0b1c 100644
--- a/zathura-mupdf/patches/patch-document.c
+++ b/zathura-mupdf/patches/patch-document.c
@@ -2,7 +2,7 @@ $NetBSD: patch-document.c,v 1.2 2015/06/13 02:16:07 leot1990 Exp $
 
 Correct the glib-2.0 include header file path.
 
---- document.c.orig	2015-05-27 15:18:11.000000000 +0000
+--- document.c.orig	2015-12-22 22:38:09.000000000 +0000
 +++ document.c
 @@ -6,7 +6,7 @@
  #include <mupdf/xps.h>
diff --git a/zathura-mupdf/patches/patch-render.c b/zathura-mupdf/patches/patch-render.c
new file mode 100644
index 0000000..79f9fb5
--- /dev/null
+++ b/zathura-mupdf/patches/patch-render.c
@@ -0,0 +1,15 @@
+$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);
+ 


Home | Main Index | Thread Index | Old Index