libports: set mupdf gamma value to 1.5

This makes the look of tikz illustrations consistent with the look when
viewing them in evince (as I do while creating them).
This commit is contained in:
Norman Feske 2018-02-01 10:57:50 +01:00
parent 065c2163dd
commit cd45a3b8d6
3 changed files with 12 additions and 1 deletions

View File

@ -1 +1 @@
ad2594a1438fe23d29267afedc124356648e4882
83343537ec66dadb4a0b6063d3e69eae31990064

View File

@ -10,6 +10,8 @@ DIRS := include/mupdf
DIR_CONTENT(include/mupdf) := $(addprefix src/lib/mupdf/,\
pdf/mupdf.h xps/muxps.h fitz/fitz.h)
PATCHES := $(sort $(wildcard $(REP_DIR)/src/lib/mupdf/*.patch))
default: fix_include
fix_include: $(DOWNLOADS)

View File

@ -0,0 +1,9 @@
+++ src/lib/mupdf/apps/pdfapp.c
@@ -397,6 +397,7 @@
fz_clear_pixmap_with_color(app->image, 255);
idev = fz_new_draw_device(app->cache, app->image);
fz_execute_display_list(app->page_list, idev, ctm, bbox);
+ fz_gamma_pixmap(app->image, 1.5);
fz_free_device(idev);
}