4 |
/* */ |
/* */ |
5 |
/* A new `perfect' anti-aliasing renderer (body). */ |
/* A new `perfect' anti-aliasing renderer (body). */ |
6 |
/* */ |
/* */ |
7 |
/* Copyright 2000-2001, 2002, 2003 by */ |
/* Copyright 2000-2001, 2002, 2003, 2005 by */ |
8 |
/* David Turner, Robert Wilhelm, and Werner Lemberg. */ |
/* David Turner, Robert Wilhelm, and Werner Lemberg. */ |
9 |
/* */ |
/* */ |
10 |
/* This file is part of the FreeType project, and may only be used, */ |
/* This file is part of the FreeType project, and may only be used, */ |
1963 |
gray_raster_render( PRaster raster, |
gray_raster_render( PRaster raster, |
1964 |
FT_Raster_Params* params ) |
FT_Raster_Params* params ) |
1965 |
{ |
{ |
1966 |
FT_Outline* outline = (FT_Outline*)params->source; |
FT_Outline* outline = (FT_Outline*)params->source; |
1967 |
FT_Bitmap* target_map = params->target; |
const FT_Bitmap* target_map = params->target; |
1968 |
|
|
1969 |
|
|
1970 |
if ( !raster || !raster->cells || !raster->max_cells ) |
if ( !raster || !raster->cells || !raster->max_cells ) |