diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2012-03-13 13:57:11 +0100 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2012-03-13 13:57:11 +0100 |
commit | 48652e529ed1c0ae23cfd45f14d9655ad2849c89 (patch) | |
tree | a34e7562a30f3a7e42070f1f5a8763f6d1d608cb /draw/draw_mesh.c | |
parent | 9cbfb766564d0e80d259e3e0a919d72a75bbb6ee (diff) | |
download | mupdf-48652e529ed1c0ae23cfd45f14d9655ad2849c89.tar.xz |
Rename some functions and accessors to be more consistent.
Debug printing functions: debug -> print.
Accessors: get noun attribute -> noun attribute.
Find -> lookup when the returned value is not reference counted.
pixmap_with_rect -> pixmap_with_bbox.
We are reserving the word "find" to mean lookups that give ownership
of objects to the caller. Lookup is used in other places where the
ownership is not transferred, or simple values are returned.
The rename is done by the sed script in scripts/rename3.sed
Diffstat (limited to 'draw/draw_mesh.c')
-rw-r--r-- | draw/draw_mesh.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/draw/draw_mesh.c b/draw/draw_mesh.c index 1d6f1759..7579ad60 100644 --- a/draw/draw_mesh.c +++ b/draw/draw_mesh.c @@ -544,8 +544,8 @@ fz_paint_shade(fz_context *ctx, fz_shade *shade, fz_matrix ctm, fz_pixmap *dest, clut[i][k] = color[k] * 255; clut[i][k] = shade->function[i][shade->colorspace->n] * 255; } - conv = fz_new_pixmap_with_rect(ctx, dest->colorspace, bbox); - temp = fz_new_pixmap_with_rect(ctx, fz_device_gray, bbox); + conv = fz_new_pixmap_with_bbox(ctx, dest->colorspace, bbox); + temp = fz_new_pixmap_with_bbox(ctx, fz_device_gray, bbox); fz_clear_pixmap(ctx, temp); } else |