[arch-commits] Commit in zathura-pdf-mupdf/repos (6 files)

2017-01-14 Thread Johannes Löthberg
Date: Saturday, January 14, 2017 @ 18:08:37
  Author: demize
Revision: 207387

archrelease: copy trunk to community-i686, community-x86_64

Added:
  zathura-pdf-mupdf/repos/community-i686/PKGBUILD
(from rev 207386, zathura-pdf-mupdf/trunk/PKGBUILD)
  zathura-pdf-mupdf/repos/community-x86_64/PKGBUILD
(from rev 207386, zathura-pdf-mupdf/trunk/PKGBUILD)
Deleted:
  zathura-pdf-mupdf/repos/community-i686/PKGBUILD
  zathura-pdf-mupdf/repos/community-i686/mupdf-1.9.patch
  zathura-pdf-mupdf/repos/community-x86_64/PKGBUILD
  zathura-pdf-mupdf/repos/community-x86_64/mupdf-1.9.patch

--+
 /PKGBUILD|   64 +++
 community-i686/PKGBUILD  |   37 -
 community-i686/mupdf-1.9.patch   |  151 -
 community-x86_64/PKGBUILD|   37 -
 community-x86_64/mupdf-1.9.patch |  151 -
 5 files changed, 64 insertions(+), 376 deletions(-)

Deleted: community-i686/PKGBUILD
===
--- community-i686/PKGBUILD 2017-01-14 18:08:25 UTC (rev 207386)
+++ community-i686/PKGBUILD 2017-01-14 18:08:37 UTC (rev 207387)
@@ -1,37 +0,0 @@
-# $Id$
-# Maintainer: Johannes Löthberg 
-# Contributor: Daniel Wallace 
-# Contributor: Sergej Pupykin 
-# Contributor: Moritz Lipp 
-
-pkgname=zathura-pdf-mupdf
-pkgver=0.3.0
-pkgrel=6
-
-pkgdesc="PDF support for Zathura (MuPDF backend)"
-url="https://pwmt.org/projects/zathura-pdf-mupdf/;
-arch=('i686' 'x86_64')
-license=('zlib')
-
-conflicts=('zathura-pdf-poppler')
-
-depends=('zathura' 'jbig2dec' 'openjpeg2' 'cairo' 'desktop-file-utils')
-makedepends=('libmupdf')
-
-source=(https://pwmt.org/projects/zathura/plugins/download/zathura-pdf-mupdf-$pkgver.tar.gz
-mupdf-1.9.patch)
-sha1sums=('ae0be41ea7c75b8ddc083fe01f1366673ea9751a'
-  'f26adb3a7c69cf7a2e957d211e8faffe79c923c7')
-
-prepare() {
-  patch -d zathura-pdf-mupdf-$pkgver -Np1 < mupdf-1.9.patch
-}
-
-build() {
-  make -C zathura-pdf-mupdf-$pkgver MUPDF_LIB="-lmupdf -lmupdfthird"
-}
-
-package(){
-  make -C zathura-pdf-mupdf-$pkgver DESTDIR="$pkgdir" install
-  install -Dm0644 zathura-pdf-mupdf-$pkgver/LICENSE 
"$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-}

Copied: zathura-pdf-mupdf/repos/community-i686/PKGBUILD (from rev 207386, 
zathura-pdf-mupdf/trunk/PKGBUILD)
===
--- community-i686/PKGBUILD (rev 0)
+++ community-i686/PKGBUILD 2017-01-14 18:08:37 UTC (rev 207387)
@@ -0,0 +1,32 @@
+# $Id$
+# Maintainer: Johannes Löthberg 
+# Contributor: Daniel Wallace 
+# Contributor: Sergej Pupykin 
+# Contributor: Moritz Lipp 
+
+pkgname=zathura-pdf-mupdf
+pkgver=0.3.1
+pkgrel=1
+
+pkgdesc="PDF support for Zathura (MuPDF backend)"
+url="https://pwmt.org/projects/zathura-pdf-mupdf/;
+arch=('i686' 'x86_64')
+license=('zlib')
+
+conflicts=('zathura-pdf-poppler')
+
+depends=('zathura' 'jbig2dec' 'openjpeg2' 'cairo' 'desktop-file-utils' 
'openssl')
+makedepends=('libmupdf')
+
+source=(https://pwmt.org/projects/zathura/plugins/download/zathura-pdf-mupdf-$pkgver.tar.gz)
+
+sha1sums=('ef37a181de96d6fca36db3ac818f790dcf3627ae')
+
+build() {
+  make -C zathura-pdf-mupdf-$pkgver MUPDF_LIB="-lmupdf -lmupdfthird"
+}
+
+package(){
+  make -C zathura-pdf-mupdf-$pkgver DESTDIR="$pkgdir" install
+  install -Dm0644 zathura-pdf-mupdf-$pkgver/LICENSE 
"$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}

Deleted: community-i686/mupdf-1.9.patch
===
--- community-i686/mupdf-1.9.patch  2017-01-14 18:08:25 UTC (rev 207386)
+++ community-i686/mupdf-1.9.patch  2017-01-14 18:08:37 UTC (rev 207387)
@@ -1,151 +0,0 @@
-From 368e80b59a7b2f330ad9bd7de45c350c6fbb2209 Mon Sep 17 00:00:00 2001
-From: Christian Hesse 
-Date: Mon, 18 Apr 2016 15:23:07 +0200
-Subject: [PATCH 1/1] update API for mupdf 1.9
-
-Signed-off-by: Christian Hesse 

- AUTHORS| 1 +
- config.mk  | 2 +-
- document.c | 6 +++---
- image.c| 2 +-
- page.c | 8 
- plugin.h   | 4 ++--
- search.c   | 2 +-
- utils.c| 2 +-
- 8 files changed, 14 insertions(+), 13 deletions(-)
-
-diff --git a/AUTHORS b/AUTHORS
-index f5f8430..371ebf1 100644
 a/AUTHORS
-+++ b/AUTHORS
-@@ -5,5 +5,6 @@ Sebastian Ramacher 
- 
- Other contributors are (in alphabetical order):
- 
-+Christian Hesse 
- Pavel Borzenkov 
- William Skeith 
-diff --git a/config.mk b/config.mk
-index cba8d40..6407ae6 100644
 a/config.mk
-+++ b/config.mk
-@@ -32,7 +32,7 @@ endif
- OPENSSL_INC ?= $(shell pkg-config --cflags libcrypto)
- OPENSSL_LIB ?= $(shell pkg-config --libs libcrypto)
- 
--MUPDF_LIB 

[arch-commits] Commit in zathura-pdf-mupdf/repos (6 files)

2016-12-06 Thread Johannes Löthberg
Date: Tuesday, December 6, 2016 @ 14:43:33
  Author: demize
Revision: 198210

archrelease: copy trunk to community-i686, community-x86_64

Added:
  zathura-pdf-mupdf/repos/community-i686/PKGBUILD
(from rev 198209, zathura-pdf-mupdf/trunk/PKGBUILD)
  zathura-pdf-mupdf/repos/community-i686/mupdf-1.9.patch
(from rev 198209, zathura-pdf-mupdf/trunk/mupdf-1.9.patch)
  zathura-pdf-mupdf/repos/community-x86_64/PKGBUILD
(from rev 198209, zathura-pdf-mupdf/trunk/PKGBUILD)
  zathura-pdf-mupdf/repos/community-x86_64/mupdf-1.9.patch
(from rev 198209, zathura-pdf-mupdf/trunk/mupdf-1.9.patch)
Deleted:
  zathura-pdf-mupdf/repos/community-i686/mupdf-1.10.patch
  zathura-pdf-mupdf/repos/community-x86_64/mupdf-1.10.patch

---+
 community-i686/PKGBUILD   |   37 
 community-i686/mupdf-1.10.patch   |  287 
 community-i686/mupdf-1.9.patch|  151 ++
 community-x86_64/PKGBUILD |   37 
 community-x86_64/mupdf-1.10.patch |  287 
 community-x86_64/mupdf-1.9.patch  |  151 ++
 6 files changed, 376 insertions(+), 574 deletions(-)

Copied: zathura-pdf-mupdf/repos/community-i686/PKGBUILD (from rev 198209, 
zathura-pdf-mupdf/trunk/PKGBUILD)
===
--- community-i686/PKGBUILD (rev 0)
+++ community-i686/PKGBUILD 2016-12-06 14:43:33 UTC (rev 198210)
@@ -0,0 +1,37 @@
+# $Id$
+# Maintainer: Johannes Löthberg 
+# Contributor: Daniel Wallace 
+# Contributor: Sergej Pupykin 
+# Contributor: Moritz Lipp 
+
+pkgname=zathura-pdf-mupdf
+pkgver=0.3.0
+pkgrel=6
+
+pkgdesc="PDF support for Zathura (MuPDF backend)"
+url="https://pwmt.org/projects/zathura-pdf-mupdf/;
+arch=('i686' 'x86_64')
+license=('zlib')
+
+conflicts=('zathura-pdf-poppler')
+
+depends=('zathura' 'jbig2dec' 'openjpeg2' 'cairo' 'desktop-file-utils')
+makedepends=('libmupdf')
+
+source=(https://pwmt.org/projects/zathura/plugins/download/zathura-pdf-mupdf-$pkgver.tar.gz
+mupdf-1.9.patch)
+sha1sums=('ae0be41ea7c75b8ddc083fe01f1366673ea9751a'
+  'f26adb3a7c69cf7a2e957d211e8faffe79c923c7')
+
+prepare() {
+  patch -d zathura-pdf-mupdf-$pkgver -Np1 < mupdf-1.9.patch
+}
+
+build() {
+  make -C zathura-pdf-mupdf-$pkgver MUPDF_LIB="-lmupdf -lmupdfthird"
+}
+
+package(){
+  make -C zathura-pdf-mupdf-$pkgver DESTDIR="$pkgdir" install
+  install -Dm0644 zathura-pdf-mupdf-$pkgver/LICENSE 
"$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}

Deleted: community-i686/mupdf-1.10.patch
===
--- community-i686/mupdf-1.10.patch 2016-12-06 14:41:50 UTC (rev 198209)
+++ community-i686/mupdf-1.10.patch 2016-12-06 14:43:33 UTC (rev 198210)
@@ -1,287 +0,0 @@
-From 518fd77c351fa1bac37679e195dc14fa76c8e895 Mon Sep 17 00:00:00 2001
-From: Moritz Lipp 
-Date: Thu, 24 Nov 2016 00:51:45 +0100
-Subject: [PATCH] Make compatible to mupdf 1.10
-

- document.c |  1 -
- image.c|  2 +-
- index.c| 68 
++--
- links.c| 64 
++--
- page.c |  4 +++-
- render.c   |  6 +++---
- utils.c|  2 +-
- 7 files changed, 48 insertions(+), 99 deletions(-)
-
-diff --git a/document.c b/document.c
-index 8d0aae4..7f9f244 100644
 a/document.c
-+++ b/document.c
-@@ -3,7 +3,6 @@
- #define _POSIX_C_SOURCE 1
- 
- #include 
--#include 
- #include 
- 
- #include 
-diff --git a/image.c b/image.c
-index 8f6912b..b938e5c 100644
 a/image.c
-+++ b/image.c
-@@ -93,7 +93,7 @@ pdf_page_image_get_cairo(zathura_page_t* page, mupdf_page_t* 
mupdf_page,
-   fz_pixmap* pixmap = NULL;
-   cairo_surface_t* surface = NULL;
- 
--  pixmap = fz_get_pixmap_from_image(mupdf_page->ctx, mupdf_image, 0, 0);
-+  pixmap = fz_get_pixmap_from_image(mupdf_page->ctx, mupdf_image, NULL, NULL, 
0, 0);
-   if (pixmap == NULL) {
- goto error_free;
-   }
-diff --git a/index.c b/index.c
-index 8b8f8a5..1d1ea8d 100644
 a/index.c
-+++ b/index.c
-@@ -6,7 +6,8 @@
- 
- #include "plugin.h"
- 
--static void build_index(fz_outline* outline, girara_tree_node_t* root);
-+static void build_index(fz_context* ctx, fz_document* document, fz_outline*
-+outline, girara_tree_node_t* root);
- 
- girara_tree_node_t*
- pdf_document_index_generate(zathura_document_t* document, mupdf_document_t* 
mupdf_document, zathura_error_t* error)
-@@ -29,7 +30,7 @@ pdf_document_index_generate(zathura_document_t* document, 
mupdf_document_t* mupd
- 
-   /* generate index */
-   girara_tree_node_t* root = 
girara_node_new(zathura_index_element_new("ROOT"));
--  build_index(outline, root);
-+  build_index(mupdf_document->ctx, mupdf_document->document, outline, root);
- 
-   /* free outline */
-   

[arch-commits] Commit in zathura-pdf-mupdf/repos (6 files)

2016-02-14 Thread Johannes Löthberg
Date: Monday, February 15, 2016 @ 01:23:48
  Author: demize
Revision: 161572

archrelease: copy trunk to community-i686, community-x86_64

Added:
  zathura-pdf-mupdf/repos/community-i686/PKGBUILD
(from rev 161571, zathura-pdf-mupdf/trunk/PKGBUILD)
  zathura-pdf-mupdf/repos/community-x86_64/PKGBUILD
(from rev 161571, zathura-pdf-mupdf/trunk/PKGBUILD)
Deleted:
  zathura-pdf-mupdf/repos/community-i686/PKGBUILD
  zathura-pdf-mupdf/repos/community-i686/fix-colorspace.patch
  zathura-pdf-mupdf/repos/community-x86_64/PKGBUILD
  zathura-pdf-mupdf/repos/community-x86_64/fix-colorspace.patch

---+
 /PKGBUILD |   62 
 community-i686/PKGBUILD   |   37 ---
 community-i686/fix-colorspace.patch   |   25 
 community-x86_64/PKGBUILD |   37 ---
 community-x86_64/fix-colorspace.patch |   25 
 5 files changed, 62 insertions(+), 124 deletions(-)

Deleted: community-i686/PKGBUILD
===
--- community-i686/PKGBUILD 2016-02-15 00:23:40 UTC (rev 161571)
+++ community-i686/PKGBUILD 2016-02-15 00:23:48 UTC (rev 161572)
@@ -1,37 +0,0 @@
-# $Id: PKGBUILD 67819 2012-03-14 16:22:14Z spupykin $
-# Maintainer: Johannes Löthberg 
-# Contributor: Daniel Wallace 
-# Contributor: Sergej Pupykin 
-# Contributor: Moritz Lipp 
-
-pkgname=zathura-pdf-mupdf
-pkgver=0.2.9
-pkgrel=2
-
-pkgdesc="PDF support for Zathura (MuPDF backend)"
-url="https://pwmt.org/projects/zathura-pdf-mupdf/;
-arch=('i686' 'x86_64')
-license=('custom')
-
-conflicts=('zathura-pdf-poppler')
-
-depends=('zathura' 'jbig2dec' 'openjpeg2' 'cairo')
-makedepends=('mupdf>=1.4')
-
-source=(https://pwmt.org/projects/zathura/plugins/download/zathura-pdf-mupdf-$pkgver.tar.gz
-fix-colorspace.patch)
-sha1sums=('55b47ed2962589eeef88168554aa5bd2f6557ed3'
-  '47814ed0e2431a9c25cb7e3c7444526b1eff0eab')
-
-prepare() {
-  patch -d zathura-pdf-mupdf-$pkgver < $srcdir/fix-colorspace.patch
-}
-
-build() {
-  make -C zathura-pdf-mupdf-$pkgver MUPDF_LIB="-lmupdf -lmujs"
-}
-
-package(){
-  make -C zathura-pdf-mupdf-$pkgver DESTDIR="$pkgdir" install
-  install -Dm0644 zathura-pdf-mupdf-$pkgver/LICENSE 
"$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-}

Copied: zathura-pdf-mupdf/repos/community-i686/PKGBUILD (from rev 161571, 
zathura-pdf-mupdf/trunk/PKGBUILD)
===
--- community-i686/PKGBUILD (rev 0)
+++ community-i686/PKGBUILD 2016-02-15 00:23:48 UTC (rev 161572)
@@ -0,0 +1,31 @@
+# $Id: PKGBUILD 67819 2012-03-14 16:22:14Z spupykin $
+# Maintainer: Johannes Löthberg 
+# Contributor: Daniel Wallace 
+# Contributor: Sergej Pupykin 
+# Contributor: Moritz Lipp 
+
+pkgname=zathura-pdf-mupdf
+pkgver=0.3.0
+pkgrel=1
+
+pkgdesc="PDF support for Zathura (MuPDF backend)"
+url="https://pwmt.org/projects/zathura-pdf-mupdf/;
+arch=('i686' 'x86_64')
+license=('custom')
+
+conflicts=('zathura-pdf-poppler')
+
+depends=('zathura' 'jbig2dec' 'openjpeg2' 'cairo')
+makedepends=('mupdf>=1.4')
+
+source=(https://pwmt.org/projects/zathura/plugins/download/zathura-pdf-mupdf-$pkgver.tar.gz)
+sha1sums=('ae0be41ea7c75b8ddc083fe01f1366673ea9751a')
+
+build() {
+  make -C zathura-pdf-mupdf-$pkgver MUPDF_LIB="-lmupdf -lmujs"
+}
+
+package(){
+  make -C zathura-pdf-mupdf-$pkgver DESTDIR="$pkgdir" install
+  install -Dm0644 zathura-pdf-mupdf-$pkgver/LICENSE 
"$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}

Deleted: community-i686/fix-colorspace.patch
===
--- community-i686/fix-colorspace.patch 2016-02-15 00:23:40 UTC (rev 161571)
+++ community-i686/fix-colorspace.patch 2016-02-15 00:23:48 UTC (rev 161572)
@@ -1,25 +0,0 @@
-From 2f083aba12994c1c8be7a85f543b38c2c2662335 Mon Sep 17 00:00:00 2001
-From: Moritz Lipp 
-Date: Thu, 21 Jan 2016 11:38:31 +0100
-Subject: [PATCH] Use correct color space
-

- render.c | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/render.c b/render.c
-index 99d3b9e..2a92a23 100644
 a/render.c
-+++ b/render.c
-@@ -36,7 +36,7 @@ pdf_page_render_to_buffer(mupdf_document_t* mupdf_document, 
mupdf_page_t* mupdf_
-   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, , image);
-   fz_clear_pixmap_with_value(mupdf_page->ctx, pixmap, 0xFF);
- 
---
-libgit2 0.23.3
-

Deleted: community-x86_64/PKGBUILD

[arch-commits] Commit in zathura-pdf-mupdf/repos (6 files)

2016-02-04 Thread Sven-Hendrik Haase
Date: Thursday, February 4, 2016 @ 18:02:11
  Author: svenstaro
Revision: 160327

archrelease: copy trunk to community-i686, community-x86_64

Added:
  zathura-pdf-mupdf/repos/community-i686/PKGBUILD
(from rev 160326, zathura-pdf-mupdf/trunk/PKGBUILD)
  zathura-pdf-mupdf/repos/community-i686/fix-colorspace.patch
(from rev 160326, zathura-pdf-mupdf/trunk/fix-colorspace.patch)
  zathura-pdf-mupdf/repos/community-x86_64/PKGBUILD
(from rev 160326, zathura-pdf-mupdf/trunk/PKGBUILD)
  zathura-pdf-mupdf/repos/community-x86_64/fix-colorspace.patch
(from rev 160326, zathura-pdf-mupdf/trunk/fix-colorspace.patch)
Deleted:
  zathura-pdf-mupdf/repos/community-i686/PKGBUILD
  zathura-pdf-mupdf/repos/community-x86_64/PKGBUILD

---+
 /PKGBUILD |   74 
 community-i686/PKGBUILD   |   31 -
 community-i686/fix-colorspace.patch   |   25 ++
 community-x86_64/PKGBUILD |   31 -
 community-x86_64/fix-colorspace.patch |   25 ++
 5 files changed, 124 insertions(+), 62 deletions(-)

Deleted: community-i686/PKGBUILD
===
--- community-i686/PKGBUILD 2016-02-04 17:02:01 UTC (rev 160326)
+++ community-i686/PKGBUILD 2016-02-04 17:02:11 UTC (rev 160327)
@@ -1,31 +0,0 @@
-# $Id: PKGBUILD 67819 2012-03-14 16:22:14Z spupykin $
-# Maintainer: Johannes Löthberg 
-# Contributor: Daniel Wallace 
-# Contributor: Sergej Pupykin 
-# Contributor: Moritz Lipp 
-
-pkgname=zathura-pdf-mupdf
-pkgver=0.2.9
-pkgrel=1
-
-pkgdesc="PDF support for Zathura (MuPDF backend)"
-url="https://pwmt.org/projects/zathura-pdf-mupdf/;
-arch=('i686' 'x86_64')
-license=('custom')
-
-conflicts=('zathura-pdf-poppler')
-
-depends=('zathura' 'jbig2dec' 'openjpeg2' 'cairo')
-makedepends=('mupdf>=1.4')
-
-source=(https://pwmt.org/projects/zathura/plugins/download/zathura-pdf-mupdf-$pkgver.tar.gz)
-sha1sums=(55b47ed2962589eeef88168554aa5bd2f6557ed3)
-
-build() {
-  make -C zathura-pdf-mupdf-$pkgver MUPDF_LIB="-lmupdf -lmujs"
-}
-
-package(){
-  make -C zathura-pdf-mupdf-$pkgver DESTDIR="$pkgdir" install
-  install -Dm0644 zathura-pdf-mupdf-$pkgver/LICENSE 
"$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-}

Copied: zathura-pdf-mupdf/repos/community-i686/PKGBUILD (from rev 160326, 
zathura-pdf-mupdf/trunk/PKGBUILD)
===
--- community-i686/PKGBUILD (rev 0)
+++ community-i686/PKGBUILD 2016-02-04 17:02:11 UTC (rev 160327)
@@ -0,0 +1,37 @@
+# $Id: PKGBUILD 67819 2012-03-14 16:22:14Z spupykin $
+# Maintainer: Johannes Löthberg 
+# Contributor: Daniel Wallace 
+# Contributor: Sergej Pupykin 
+# Contributor: Moritz Lipp 
+
+pkgname=zathura-pdf-mupdf
+pkgver=0.2.9
+pkgrel=2
+
+pkgdesc="PDF support for Zathura (MuPDF backend)"
+url="https://pwmt.org/projects/zathura-pdf-mupdf/;
+arch=('i686' 'x86_64')
+license=('custom')
+
+conflicts=('zathura-pdf-poppler')
+
+depends=('zathura' 'jbig2dec' 'openjpeg2' 'cairo')
+makedepends=('mupdf>=1.4')
+
+source=(https://pwmt.org/projects/zathura/plugins/download/zathura-pdf-mupdf-$pkgver.tar.gz
+fix-colorspace.patch)
+sha1sums=('55b47ed2962589eeef88168554aa5bd2f6557ed3'
+  '47814ed0e2431a9c25cb7e3c7444526b1eff0eab')
+
+prepare() {
+  patch -d zathura-pdf-mupdf-$pkgver < $srcdir/fix-colorspace.patch
+}
+
+build() {
+  make -C zathura-pdf-mupdf-$pkgver MUPDF_LIB="-lmupdf -lmujs"
+}
+
+package(){
+  make -C zathura-pdf-mupdf-$pkgver DESTDIR="$pkgdir" install
+  install -Dm0644 zathura-pdf-mupdf-$pkgver/LICENSE 
"$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}

Copied: zathura-pdf-mupdf/repos/community-i686/fix-colorspace.patch (from rev 
160326, zathura-pdf-mupdf/trunk/fix-colorspace.patch)
===
--- community-i686/fix-colorspace.patch (rev 0)
+++ community-i686/fix-colorspace.patch 2016-02-04 17:02:11 UTC (rev 160327)
@@ -0,0 +1,25 @@
+From 2f083aba12994c1c8be7a85f543b38c2c2662335 Mon Sep 17 00:00:00 2001
+From: Moritz Lipp 
+Date: Thu, 21 Jan 2016 11:38:31 +0100
+Subject: [PATCH] Use correct color space
+
+---
+ render.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/render.c b/render.c
+index 99d3b9e..2a92a23 100644
+--- a/render.c
 b/render.c
+@@ -36,7 +36,7 @@ pdf_page_render_to_buffer(mupdf_document_t* mupdf_document, 
mupdf_page_t* mupdf_
+   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 =