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:
James Henstridge 2002-12-02 14:08:22 +00:00 committed by James Henstridge
parent dd78dff000
commit 01e468fc57
3 changed files with 146 additions and 50 deletions

View file

@ -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;
}