diff options
author | Sebastian Rasmussen <sebras@hotmail.com> | 2010-12-30 15:43:42 +0000 |
---|---|---|
committer | Sebastian Rasmussen <sebras@hotmail.com> | 2010-12-30 15:43:42 +0000 |
commit | 559252258781ed2f0eecd34d16a7b84ec52c0e21 (patch) | |
tree | 3efbcada2f2e940f44f5212b595503d52e0e8fd4 /fitz/res_font.c | |
parent | 6e2a8f21f83b87bbf0530d92f809a3aea6aba724 (diff) | |
download | mupdf-559252258781ed2f0eecd34d16a7b84ec52c0e21.tar.xz |
Adhere to nil idiom.
Diffstat (limited to 'fitz/res_font.c')
-rw-r--r-- | fitz/res_font.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/fitz/res_font.c b/fitz/res_font.c index 26d7267f..eb5e4ef9 100644 --- a/fitz/res_font.c +++ b/fitz/res_font.c @@ -314,7 +314,7 @@ fz_renderftglyph(fz_font *font, int gid, fz_matrix trm) return nil; } - glyph = fz_newpixmap(NULL, + glyph = fz_newpixmap(nil, face->glyph->bitmap_left, face->glyph->bitmap_top - face->glyph->bitmap.rows, face->glyph->bitmap.width, @@ -404,7 +404,7 @@ fz_renderftstrokedglyph(fz_font *font, int gid, fz_matrix trm, fz_matrix ctm, fz } bitmap = (FT_BitmapGlyph)glyph; - pix = fz_newpixmap(NULL, + pix = fz_newpixmap(nil, bitmap->left, bitmap->top - bitmap->bitmap.rows, bitmap->bitmap.width, @@ -461,11 +461,11 @@ fz_rendert3glyph(fz_font *font, int gid, fz_matrix trm) fz_pixmap *result; if (gid < 0 || gid > 255) - return NULL; + return nil; contents = font->t3procs[gid]; if (!contents) - return NULL; + return nil; ctm = fz_concat(font->t3matrix, trm); dev = fz_newbboxdevice(&bbox); |