From ccaf716d6c3f20731aaed277653cf3b1be4e218b Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Thu, 16 Jun 2016 16:32:08 +0200 Subject: Add device space transform state to draw device. Allows us to remove the out parameter 'transform' from fz_begin_page. --- platform/x11/pdfapp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'platform/x11') diff --git a/platform/x11/pdfapp.c b/platform/x11/pdfapp.c index 55d5b5e3..2b650442 100644 --- a/platform/x11/pdfapp.c +++ b/platform/x11/pdfapp.c @@ -793,7 +793,7 @@ static void pdfapp_updatepage(pdfapp_t *app) fz_transform_rect(fz_bound_annot(app->ctx, annot, &bounds), &ctm); fz_rect_from_irect(&bounds, fz_round_rect(&ibounds, &bounds)); fz_clear_pixmap_rect_with_value(app->ctx, app->image, 255, &ibounds); - idev = fz_new_draw_device_with_bbox(app->ctx, app->image, &ibounds); + idev = fz_new_draw_device_with_bbox(app->ctx, NULL, app->image, &ibounds); pdfapp_runpage(app, idev, &ctm, &bounds, NULL); fz_drop_device(app->ctx, idev); } @@ -895,7 +895,7 @@ static void pdfapp_showpage(pdfapp_t *app, int loadpage, int drawpage, int repai fz_clear_pixmap_with_value(app->ctx, app->image, 255); if (app->page_list || app->annotations_list) { - idev = fz_new_draw_device(app->ctx, app->image); + idev = fz_new_draw_device(app->ctx, NULL, app->image); pdfapp_runpage(app, idev, &ctm, &bounds, &cookie); fz_drop_device(app->ctx, idev); } -- cgit v1.2.3