diff options
Diffstat (limited to 'render/pixmap.c')
-rw-r--r-- | render/pixmap.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/render/pixmap.c b/render/pixmap.c index 4e6823d9..8f34ebcd 100644 --- a/render/pixmap.c +++ b/render/pixmap.c @@ -28,9 +28,9 @@ fz_error * fz_newpixmapwithrect(fz_pixmap **pixp, fz_irect r, int n) { return fz_newpixmap(pixp, - r.min.x, r.min.y, - r.max.x - r.min.x, - r.max.y - r.min.y, n); + r.x0, r.y0, + r.x1 - r.x0, + r.y1 - r.y0, n); } fz_error * |