diff options
-rw-r--r-- | include/mupdf/fitz/image.h | 2 | ||||
-rw-r--r-- | source/cbz/mucbz.c | 4 | ||||
-rw-r--r-- | source/cbz/muimg.c | 4 | ||||
-rw-r--r-- | source/cbz/mutiff.c | 4 | ||||
-rw-r--r-- | source/fitz/image.c | 2 |
5 files changed, 8 insertions, 8 deletions
diff --git a/include/mupdf/fitz/image.h b/include/mupdf/fitz/image.h index 95949cfe..05bf0d70 100644 --- a/include/mupdf/fitz/image.h +++ b/include/mupdf/fitz/image.h @@ -98,6 +98,6 @@ void fz_load_gif_info(fz_context *ctx, unsigned char *data, int size, int *w, in int fz_load_tiff_subimage_count(fz_context *ctx, unsigned char *buf, int len); fz_pixmap *fz_load_tiff_subimage(fz_context *ctx, unsigned char *buf, int len, int subimage); -void fz_image_get_sanitised_res(fz_image *image, int *xres, int *yres); +void fz_image_resolution(fz_image *image, int *xres, int *yres); #endif diff --git a/source/cbz/mucbz.c b/source/cbz/mucbz.c index 91f6e9db..06873f8c 100644 --- a/source/cbz/mucbz.c +++ b/source/cbz/mucbz.c @@ -120,7 +120,7 @@ cbz_bound_page(fz_context *ctx, cbz_page *page, fz_rect *bbox) fz_image *image = page->image; int xres, yres; - fz_image_get_sanitised_res(image, &xres, &yres); + fz_image_resolution(image, &xres, &yres); bbox->x0 = bbox->y0 = 0; bbox->x1 = image->w * DPI / xres; bbox->y1 = image->h * DPI / yres; @@ -135,7 +135,7 @@ cbz_run_page(fz_context *ctx, cbz_page *page, fz_device *dev, const fz_matrix *c int xres, yres; float w, h; - fz_image_get_sanitised_res(image, &xres, &yres); + fz_image_resolution(image, &xres, &yres); w = image->w * DPI / xres; h = image->h * DPI / yres; fz_pre_scale(&local_ctm, w, h); diff --git a/source/cbz/muimg.c b/source/cbz/muimg.c index 0a01e2b0..204d066b 100644 --- a/source/cbz/muimg.c +++ b/source/cbz/muimg.c @@ -35,7 +35,7 @@ img_bound_page(fz_context *ctx, img_page *page, fz_rect *bbox) { fz_image *image = page->image; int xres, yres; - fz_image_get_sanitised_res(image, &xres, &yres); + fz_image_resolution(image, &xres, &yres); bbox->x0 = bbox->y0 = 0; bbox->x1 = image->w * DPI / xres; bbox->y1 = image->h * DPI / yres; @@ -49,7 +49,7 @@ img_run_page(fz_context *ctx, img_page *page, fz_device *dev, const fz_matrix *c fz_image *image = page->image; int xres, yres; float w, h; - fz_image_get_sanitised_res(image, &xres, &yres); + fz_image_resolution(image, &xres, &yres); w = image->w * DPI / xres; h = image->h * DPI / yres; fz_pre_scale(&local_ctm, w, h); diff --git a/source/cbz/mutiff.c b/source/cbz/mutiff.c index 3749fb11..2dcf4e5b 100644 --- a/source/cbz/mutiff.c +++ b/source/cbz/mutiff.c @@ -24,7 +24,7 @@ tiff_bound_page(fz_context *ctx, tiff_page *page, fz_rect *bbox) fz_image *image = page->image; int xres, yres; - fz_image_get_sanitised_res(image, &xres, &yres); + fz_image_resolution(image, &xres, &yres); bbox->x0 = bbox->y0 = 0; bbox->x1 = image->w * DPI / xres; bbox->y1 = image->h * DPI / yres; @@ -39,7 +39,7 @@ tiff_run_page(fz_context *ctx, tiff_page *page, fz_device *dev, const fz_matrix int xres, yres; float w, h; - fz_image_get_sanitised_res(image, &xres, &yres); + fz_image_resolution(image, &xres, &yres); w = image->w * DPI / xres; h = image->h * DPI / yres; fz_pre_scale(&local_ctm, w, h); diff --git a/source/fitz/image.c b/source/fitz/image.c index 60c3578d..a1a3be6a 100644 --- a/source/fitz/image.c +++ b/source/fitz/image.c @@ -551,7 +551,7 @@ fz_new_image_from_buffer(fz_context *ctx, fz_buffer *buffer) } void -fz_image_get_sanitised_res(fz_image *image, int *xres, int *yres) +fz_image_resolution(fz_image *image, int *xres, int *yres) { *xres = image->xres; *yres = image->yres; |