split code for drawing character into separate function. (save_pixbuf):
2002-12-02 James Henstridge <james@daa.com.au> * src/thumbnailer.c (draw_char): split code for drawing character into separate function. (save_pixbuf): function to save the pixbuf. We crop the pixbuf leaving PAD_PIXELS pixels round the edges. * src/ftstream-vfs.c (FT_New_URI_Face): unset the FT_FACE_FLAG_EXTERNAL_STREAM flag on the face, so that it gets freed with the face. (this is a bit of a hack ...).
This commit is contained in:
parent
dd78dff000
commit
01e468fc57
3 changed files with 146 additions and 50 deletions
|
@ -108,7 +108,7 @@ FT_New_URI_Face(FT_Library library,
|
|||
error = FT_Open_Face(library, &args, face_index, aface);
|
||||
|
||||
if (error != FT_Err_Ok) {
|
||||
stream->close(stream);
|
||||
if (stream->close) stream->close(stream);
|
||||
free(stream);
|
||||
return error;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue