diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2013-02-06 15:14:20 +0100 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2013-02-06 19:24:15 +0000 |
commit | 0bd405c16618e1b0cdaba67fe61509cd113ba653 (patch) | |
tree | 4434bd3d873418feaa5d96d7a6f4539ec3b57fb4 /apps | |
parent | b951f35ea59e27a21a63b84ec1506974ceab27a0 (diff) | |
download | mupdf-0bd405c16618e1b0cdaba67fe61509cd113ba653.tar.xz |
Rename bbox to irect.
Diffstat (limited to 'apps')
-rw-r--r-- | apps/mudraw.c | 4 | ||||
-rw-r--r-- | apps/pdfapp.c | 12 |
2 files changed, 8 insertions, 8 deletions
diff --git a/apps/mudraw.c b/apps/mudraw.c index 668dad41..a1cc4eaf 100644 --- a/apps/mudraw.c +++ b/apps/mudraw.c @@ -406,7 +406,7 @@ static void drawpage(fz_context *ctx, fz_document *doc, int pagenum) float zoom; fz_matrix ctm; fz_rect bounds, tbounds; - fz_bbox ibounds; + fz_irect ibounds; fz_pixmap *pix = NULL; int w, h; @@ -469,7 +469,7 @@ static void drawpage(fz_context *ctx, fz_document *doc, int pagenum) fz_transform_rect(&tbounds, &ctm); } fz_round_rect(&ibounds, &tbounds); - fz_rect_from_bbox(&tbounds, &ibounds); + fz_rect_from_irect(&tbounds, &ibounds); /* TODO: banded rendering and multi-page ppm */ diff --git a/apps/pdfapp.c b/apps/pdfapp.c index dab2a7b9..6a0e8054 100644 --- a/apps/pdfapp.c +++ b/apps/pdfapp.c @@ -100,7 +100,7 @@ void pdfapp_init(fz_context *ctx, pdfapp_t *app) void pdfapp_invert(pdfapp_t *app, const fz_rect *rect) { - fz_bbox b; + fz_irect b; fz_invert_pixmap_rect(app->image, fz_round_rect(&b, rect)); } @@ -566,9 +566,9 @@ static void pdfapp_updatepage(pdfapp_t *app) while ((annot = fz_poll_changed_annot(idoc, app->page)) != NULL) { fz_rect bounds; - fz_bbox ibounds; + fz_irect ibounds; fz_transform_rect(fz_bound_annot(app->doc, annot, &bounds), &ctm); - fz_rect_from_bbox(&bounds, fz_round_rect(&ibounds, &bounds)); + 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); @@ -592,7 +592,7 @@ static void pdfapp_showpage(pdfapp_t *app, int loadpage, int drawpage, int repai fz_colorspace *colorspace; fz_matrix ctm; fz_rect bounds; - fz_bbox ibounds; + fz_irect ibounds; fz_cookie cookie = { 0 }; if (!app->nowaitcursor) @@ -651,7 +651,7 @@ static void pdfapp_showpage(pdfapp_t *app, int loadpage, int drawpage, int repai pdfapp_viewctm(&ctm, app); bounds = app->page_bbox; fz_round_rect(&ibounds, fz_transform_rect(&bounds, &ctm)); - fz_rect_from_bbox(&bounds, &ibounds); + fz_rect_from_irect(&bounds, &ibounds); /* Draw */ if (app->image) @@ -1341,7 +1341,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_context *ctx = app->ctx; - fz_bbox rect; + fz_irect rect; fz_link *link; fz_matrix ctm; fz_point p; |