From 7eca6b0d05443e85ecd7bb107dccf410696364aa Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Tue, 13 Mar 2012 13:36:39 +0100 Subject: Add ctx argument and rename fz_bound_pixmap to fz_pixmap_bbox. --- apps/x11_main.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'apps/x11_main.c') diff --git a/apps/x11_main.c b/apps/x11_main.c index 6ee76788..447ebeb2 100644 --- a/apps/x11_main.c +++ b/apps/x11_main.c @@ -336,9 +336,8 @@ static void winblitsearch(pdfapp_t *app) static void winblit(pdfapp_t *app) { - fz_bbox bb = fz_bound_pixmap(gapp.image); - int image_w = bb.x1 - bb.x0; - int image_h = bb.y1 - bb.y0; + int image_w = fz_pixmap_width(gapp.ctx, gapp.image); + int image_h = fz_pixmap_height(gapp.ctx, gapp.image); int image_n = fz_pixmap_components(gapp.ctx, gapp.image); unsigned char *image_samples = fz_pixmap_samples(gapp.ctx, gapp.image); int x0 = gapp.panx; -- cgit v1.2.3