summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2012-03-13 13:36:39 +0100
committerTor Andersson <tor.andersson@artifex.com>2012-03-13 14:03:09 +0100
commit7eca6b0d05443e85ecd7bb107dccf410696364aa (patch)
treee4f5c9a362e7a4c7b51b2d07087f422043de9f2f /apps
parent48652e529ed1c0ae23cfd45f14d9655ad2849c89 (diff)
downloadmupdf-7eca6b0d05443e85ecd7bb107dccf410696364aa.tar.xz
Add ctx argument and rename fz_bound_pixmap to fz_pixmap_bbox.
Diffstat (limited to 'apps')
-rw-r--r--apps/pdfapp.c2
-rw-r--r--apps/x11_main.c5
2 files changed, 3 insertions, 4 deletions
diff --git a/apps/pdfapp.c b/apps/pdfapp.c
index 59b2f18d..0afd5d15 100644
--- a/apps/pdfapp.c
+++ b/apps/pdfapp.c
@@ -904,7 +904,7 @@ void pdfapp_onkey(pdfapp_t *app, int c)
void pdfapp_onmouse(pdfapp_t *app, int x, int y, int btn, int modifiers, int state)
{
- fz_bbox rect = fz_bound_pixmap(app->image);
+ fz_bbox rect = fz_pixmap_bbox(app->ctx, app->image);
fz_link *link;
fz_matrix ctm;
fz_point p;
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;