diff options
-rw-r--r-- | apps/pdfapp.c | 2 | ||||
-rw-r--r-- | apps/pdfdraw.c | 2 | ||||
-rw-r--r-- | fitz/base_matrix.c | 2 | ||||
-rw-r--r-- | fitz/base_rect.c | 2 | ||||
-rw-r--r-- | fitz/dev_draw.c | 28 | ||||
-rw-r--r-- | fitz/fitz_base.h | 4 | ||||
-rw-r--r-- | fitz/res_font.c | 2 | ||||
-rw-r--r-- | fitz/res_shade.c | 2 | ||||
-rw-r--r-- | fitz/res_text.c | 4 | ||||
-rw-r--r-- | mupdf/pdf_build.c | 4 |
10 files changed, 26 insertions, 26 deletions
diff --git a/apps/pdfapp.c b/apps/pdfapp.c index 30c20fe3..dcfa961a 100644 --- a/apps/pdfapp.c +++ b/apps/pdfapp.c @@ -252,7 +252,7 @@ static void pdfapp_showpage(pdfapp_t *app, int loadpage, int drawpage) wincursor(app, WAIT); ctm = pdfapp_viewctm(app); - bbox = fz_roundrect(fz_transformaabb(ctm, app->page->mediabox)); + bbox = fz_roundrect(fz_transformrect(ctm, app->page->mediabox)); list = fz_newdisplaylist(); diff --git a/apps/pdfdraw.c b/apps/pdfdraw.c index 5774e5aa..04b25a40 100644 --- a/apps/pdfdraw.c +++ b/apps/pdfdraw.c @@ -192,7 +192,7 @@ static void drawpnm(int pagenum, struct benchmark *loadtimes, struct benchmark * ctm = fz_concat(ctm, fz_scale(drawzoom, -drawzoom)); ctm = fz_concat(ctm, fz_rotate(drawrotate + drawpage->rotate)); - bbox = fz_roundrect(fz_transformaabb(ctm, drawpage->mediabox)); + bbox = fz_roundrect(fz_transformrect(ctm, drawpage->mediabox)); w = bbox.x1 - bbox.x0; h = bbox.y1 - bbox.y0; bh = h / drawbands; diff --git a/fitz/base_matrix.c b/fitz/base_matrix.c index 8bdd6e6c..8735b1ad 100644 --- a/fitz/base_matrix.c +++ b/fitz/base_matrix.c @@ -159,7 +159,7 @@ fz_transformpoint(fz_matrix m, fz_point p) } fz_rect -fz_transformaabb(fz_matrix m, fz_rect r) +fz_transformrect(fz_matrix m, fz_rect r) { fz_point s, t, u, v; diff --git a/fitz/base_rect.c b/fitz/base_rect.c index d2ba5bd1..bd5e2df8 100644 --- a/fitz/base_rect.c +++ b/fitz/base_rect.c @@ -17,7 +17,7 @@ fz_roundrect(fz_rect f) } fz_bbox -fz_intersectirects(fz_bbox a, fz_bbox b) +fz_intersectbbox(fz_bbox a, fz_bbox b) { fz_bbox r; if (fz_isinfiniterect(a)) return b; diff --git a/fitz/dev_draw.c b/fitz/dev_draw.c index 456f61a0..0b4bb970 100644 --- a/fitz/dev_draw.c +++ b/fitz/dev_draw.c @@ -40,7 +40,7 @@ blendover(fz_pixmap *src, fz_pixmap *dst) dr.x1 = dst->x + dst->w; dr.y1 = dst->y + dst->h; - dr = fz_intersectirects(sr, dr); + dr = fz_intersectbbox(sr, dr); x = dr.x0; y = dr.y0; w = dr.x1 - dr.x0; @@ -81,8 +81,8 @@ blendmaskover(fz_pixmap *src, fz_pixmap *msk, fz_pixmap *dst) mr.x1 = msk->x + msk->w; mr.y1 = msk->y + msk->h; - dr = fz_intersectirects(sr, dr); - dr = fz_intersectirects(dr, mr); + dr = fz_intersectbbox(sr, dr); + dr = fz_intersectbbox(dr, mr); x = dr.x0; y = dr.y0; w = dr.x1 - dr.x0; @@ -124,7 +124,7 @@ fz_drawfillpath(void *user, fz_path *path, fz_matrix ctm, fz_sortgel(dev->gel); bbox = fz_boundgel(dev->gel); - bbox = fz_intersectirects(bbox, clip); + bbox = fz_intersectbbox(bbox, clip); if (fz_isemptyrect(bbox)) return; @@ -175,7 +175,7 @@ fz_drawstrokepath(void *user, fz_path *path, fz_matrix ctm, fz_sortgel(dev->gel); bbox = fz_boundgel(dev->gel); - bbox = fz_intersectirects(bbox, clip); + bbox = fz_intersectbbox(bbox, clip); if (fz_isemptyrect(bbox)) return; @@ -224,7 +224,7 @@ fz_drawclippath(void *user, fz_path *path, fz_matrix ctm) fz_sortgel(dev->gel); bbox = fz_boundgel(dev->gel); - bbox = fz_intersectirects(bbox, clip); + bbox = fz_intersectbbox(bbox, clip); mask = fz_newpixmapwithrect(nil, bbox); dest = fz_newpixmapwithrect(dev->model, bbox); @@ -387,14 +387,14 @@ fz_drawfillshade(void *user, fz_shade *shade, fz_matrix ctm) unsigned char *s; int n; - bounds = fz_transformaabb(fz_concat(shade->matrix, ctm), shade->bbox); + bounds = fz_transformrect(fz_concat(shade->matrix, ctm), shade->bbox); bbox = fz_roundrect(bounds); clip.x0 = dev->dest->x; clip.y0 = dev->dest->y; clip.x1 = dev->dest->x + dev->dest->w; clip.y1 = dev->dest->y + dev->dest->h; - clip = fz_intersectirects(clip, bbox); + clip = fz_intersectbbox(clip, bbox); if (fz_isemptyrect(clip)) return; @@ -471,14 +471,14 @@ fz_drawfillimage(void *user, fz_pixmap *image, fz_matrix ctm) bounds.y0 = 0; bounds.x1 = 1; bounds.y1 = 1; - bounds = fz_transformaabb(ctm, bounds); + bounds = fz_transformrect(ctm, bounds); bbox = fz_roundrect(bounds); clip.x0 = dev->dest->x; clip.y0 = dev->dest->y; clip.x1 = dev->dest->x + dev->dest->w; clip.y1 = dev->dest->y + dev->dest->h; - clip = fz_intersectirects(clip, bbox); + clip = fz_intersectbbox(clip, bbox); if (fz_isemptyrect(clip)) return; @@ -559,14 +559,14 @@ fz_drawfillimagemask(void *user, fz_pixmap *image, fz_matrix ctm, bounds.y0 = 0; bounds.x1 = 1; bounds.y1 = 1; - bounds = fz_transformaabb(ctm, bounds); + bounds = fz_transformrect(ctm, bounds); bbox = fz_roundrect(bounds); clip.x0 = dev->dest->x; clip.y0 = dev->dest->y; clip.x1 = dev->dest->x + dev->dest->w; clip.y1 = dev->dest->y + dev->dest->h; - clip = fz_intersectirects(clip, bbox); + clip = fz_intersectbbox(clip, bbox); if (fz_isemptyrect(clip)) return; @@ -653,14 +653,14 @@ fz_drawclipimagemask(void *user, fz_pixmap *image, fz_matrix ctm) bounds.y0 = 0; bounds.x1 = 1; bounds.y1 = 1; - bounds = fz_transformaabb(ctm, bounds); + bounds = fz_transformrect(ctm, bounds); bbox = fz_roundrect(bounds); clip.x0 = dev->dest->x; clip.y0 = dev->dest->y; clip.x1 = dev->dest->x + dev->dest->w; clip.y1 = dev->dest->y + dev->dest->h; - clip = fz_intersectirects(clip, bbox); + clip = fz_intersectbbox(clip, bbox); calcimagescale(ctm, image->w, image->h, &dx, &dy); diff --git a/fitz/fitz_base.h b/fitz/fitz_base.h index 00e10b20..ea6c9aa0 100644 --- a/fitz/fitz_base.h +++ b/fitz/fitz_base.h @@ -248,10 +248,10 @@ int fz_isrectilinear(fz_matrix m); float fz_matrixexpansion(fz_matrix m); fz_bbox fz_roundrect(fz_rect r); -fz_bbox fz_intersectirects(fz_bbox a, fz_bbox b); +fz_bbox fz_intersectbbox(fz_bbox a, fz_bbox b); fz_point fz_transformpoint(fz_matrix m, fz_point p); -fz_rect fz_transformaabb(fz_matrix m, fz_rect r); +fz_rect fz_transformrect(fz_matrix m, fz_rect r); #endif diff --git a/fitz/res_font.c b/fitz/res_font.c index f56a1ac8..b7cc6cda 100644 --- a/fitz/res_font.c +++ b/fitz/res_font.c @@ -384,7 +384,7 @@ fz_rendert3glyph(fz_glyph *glyph, fz_font *font, int gid, fz_matrix trm) return; ctm = fz_concat(font->t3matrix, trm); - bbox = fz_transformaabb(ctm, font->bbox); + bbox = fz_transformrect(ctm, font->bbox); pixmap = fz_newpixmap(nil, bbox.x0, bbox.y0, bbox.x1 - bbox.x0, bbox.y1 - bbox.y0); fz_clearpixmap(pixmap, 0x00); diff --git a/fitz/res_shade.c b/fitz/res_shade.c index d49f4121..7e554436 100644 --- a/fitz/res_shade.c +++ b/fitz/res_shade.c @@ -23,6 +23,6 @@ fz_rect fz_boundshade(fz_shade *shade, fz_matrix ctm) { ctm = fz_concat(shade->matrix, ctm); - return fz_transformaabb(ctm, shade->bbox); + return fz_transformrect(ctm, shade->bbox); } diff --git a/fitz/res_text.c b/fitz/res_text.c index 798bd8a5..99fb37a5 100644 --- a/fitz/res_text.c +++ b/fitz/res_text.c @@ -63,7 +63,7 @@ fz_boundtext(fz_text *text, fz_matrix ctm) bbox.y1 = MAX(bbox.y1, text->els[i].y); } - bbox = fz_transformaabb(ctm, bbox); + bbox = fz_transformrect(ctm, bbox); /* find bbox of font in trm * ctm space */ @@ -76,7 +76,7 @@ fz_boundtext(fz_text *text, fz_matrix ctm) fbox.x1 = text->font->bbox.x1 * 0.001; fbox.y1 = text->font->bbox.y1 * 0.001; - fbox = fz_transformaabb(trm, fbox); + fbox = fz_transformrect(trm, fbox); /* expand glyph origin bbox by font bbox */ diff --git a/mupdf/pdf_build.c b/mupdf/pdf_build.c index 4f860f48..225ee730 100644 --- a/mupdf/pdf_build.c +++ b/mupdf/pdf_build.c @@ -215,7 +215,7 @@ pdf_showpattern(pdf_csi *csi, pdf_pattern *pat, pdf_xref *xref, fz_rect bbox, in /* patterns are painted using the ctm in effect at the beginning of the content stream */ /* get bbox of shape in pattern space for stamping */ - bbox = fz_transformaabb(invptm, bbox); + bbox = fz_transformrect(invptm, bbox); x0 = floor(bbox.x0 / pat->xstep); y0 = floor(bbox.y0 / pat->ystep); x1 = ceil(bbox.x1 / pat->xstep); @@ -293,7 +293,7 @@ pdf_showimage(pdf_csi *csi, pdf_xref *xref, pdf_image *image) bbox.y0 = 0; bbox.x1 = 1; bbox.y1 = 1; - bbox = fz_transformaabb(gstate->ctm, bbox); + bbox = fz_transformrect(gstate->ctm, bbox); csi->dev->clipimagemask(csi->dev->user, tile, gstate->ctm); pdf_showpattern(csi, gstate->fill.pattern, xref, bbox, PDF_MFILL); csi->dev->popclip(csi->dev->user); |