From cf7b2cbbfe6192fbf697237735ab45bc951304e4 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Thu, 23 Jun 2016 12:33:30 +0200 Subject: Update JNI code. Take explicit alpha argument in toPixmap functions. --- platform/gl/gl-main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'platform/gl') diff --git a/platform/gl/gl-main.c b/platform/gl/gl-main.c index ff080d1b..e6a93680 100644 --- a/platform/gl/gl-main.c +++ b/platform/gl/gl-main.c @@ -263,14 +263,14 @@ void render_page(void) links = NULL; links = fz_load_links(ctx, page); - pix = fz_new_pixmap_from_page_contents(ctx, page, &page_ctm, fz_device_rgb(ctx)); + pix = fz_new_pixmap_from_page_contents(ctx, page, &page_ctm, fz_device_rgb(ctx), 0); texture_from_pixmap(&page_tex, pix); fz_drop_pixmap(ctx, pix); annot_count = 0; for (annot = fz_first_annot(ctx, page); annot; annot = fz_next_annot(ctx, annot)) { - pix = fz_new_pixmap_from_annot(ctx, annot, &page_ctm, fz_device_rgb(ctx)); + pix = fz_new_pixmap_from_annot(ctx, annot, &page_ctm, fz_device_rgb(ctx), 1); texture_from_pixmap(&annot_tex[annot_count++], pix); fz_drop_pixmap(ctx, pix); } -- cgit v1.2.3