diff options
author | Werner Lemberg <wl@gnu.org> | 2010-06-24 10:34:29 +0200 |
---|---|---|
committer | Werner Lemberg <wl@gnu.org> | 2010-06-24 10:34:29 +0200 |
commit | f765e4403cae51d2b0f5e603eb3993c05fcb4fda (patch) | |
tree | c500ddf87ee30700acd5cddb91fe56b434d7db49 /src/raster/rastpic.c | |
parent | 8b1c34da4ca2f21713b4a47db2a025c23e5b9eb4 (diff) | |
download | freetype2-f765e4403cae51d2b0f5e603eb3993c05fcb4fda.tar.gz |
*/*: Use module specific error names where appropriate.
Diffstat (limited to 'src/raster/rastpic.c')
-rw-r--r-- | src/raster/rastpic.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/raster/rastpic.c b/src/raster/rastpic.c index 3c264877b..e31c54976 100644 --- a/src/raster/rastpic.c +++ b/src/raster/rastpic.c @@ -4,7 +4,7 @@ /* */ /* The FreeType position independent code services for raster module. */ /* */ -/* Copyright 2009 by */ +/* Copyright 2009, 2010 by */ /* Oran Agra and Mickey Gabel. */ /* */ /* This file is part of the FreeType project, and may only be used, */ @@ -43,16 +43,17 @@ FT_Error - ft_raster1_renderer_class_pic_init( FT_Library library ) + ft_raster1_renderer_class_pic_init( FT_Library library ) { FT_PIC_Container* pic_container = &library->pic_container; - FT_Error error = FT_Err_Ok; - RasterPIC* container; - FT_Memory memory = library->memory; + FT_Error error = Raster_Err_Ok; + RasterPIC* container; + FT_Memory memory = library->memory; + /* since this function also serve raster5 renderer, it implements reference counting */ - if(pic_container->raster) + if ( pic_container->raster ) { ((RasterPIC*)pic_container->raster)->ref_count++; return error; |