diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2012-03-13 13:36:39 +0100 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2012-03-13 14:03:09 +0100 |
commit | 7eca6b0d05443e85ecd7bb107dccf410696364aa (patch) | |
tree | e4f5c9a362e7a4c7b51b2d07087f422043de9f2f /apps/x11_main.c | |
parent | 48652e529ed1c0ae23cfd45f14d9655ad2849c89 (diff) | |
download | mupdf-7eca6b0d05443e85ecd7bb107dccf410696364aa.tar.xz |
Add ctx argument and rename fz_bound_pixmap to fz_pixmap_bbox.
Diffstat (limited to 'apps/x11_main.c')
-rw-r--r-- | apps/x11_main.c | 5 |
1 files changed, 2 insertions, 3 deletions
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; |