* include/freetype/ftimage.h (FT_Raster_Params),
include/freetype/ftoutln.h (FT_Outline_Translate, FT_Outline_Transform), src/base/ftoutln.c (FT_Outline_Translate, FT_Outline_Transform): Decorate parameters with `const' where appropriate. Update all callers. * src/raster/ftraster.c (ft_black_reset), src/smooth/ftgrays.c (gray_raster_reset): Remove `const' from `pool_base' argument.
This commit is contained in:
parent
e623bfa8e2
commit
8ae1dceb94
12
ChangeLog
12
ChangeLog
|
@ -1,3 +1,15 @@
|
|||
2005-05-20 Kirill Smelkov <kirr@mns.spb.ru>
|
||||
|
||||
* include/freetype/ftimage.h (FT_Raster_Params),
|
||||
include/freetype/ftoutln.h (FT_Outline_Translate,
|
||||
FT_Outline_Transform), src/base/ftoutln.c (FT_Outline_Translate,
|
||||
FT_Outline_Transform): Decorate parameters with `const' where
|
||||
appropriate.
|
||||
Update all callers.
|
||||
|
||||
* src/raster/ftraster.c (ft_black_reset), src/smooth/ftgrays.c
|
||||
(gray_raster_reset): Remove `const' from `pool_base' argument.
|
||||
|
||||
2005-05-18 Kirill Smelkov <kirr@mns.spb.ru>
|
||||
|
||||
* src/raster/ftmisc.h: New file. Only needed if ftraster.c is
|
||||
|
|
|
@ -1031,7 +1031,7 @@ FT_BEGIN_HEADER
|
|||
typedef struct FT_Raster_Params_
|
||||
{
|
||||
const FT_Bitmap* target;
|
||||
void* source;
|
||||
const void* source;
|
||||
int flags;
|
||||
FT_SpanFunc gray_spans;
|
||||
FT_SpanFunc black_spans;
|
||||
|
|
|
@ -250,9 +250,9 @@ FT_BEGIN_HEADER
|
|||
/* yOffset :: The vertical offset. */
|
||||
/* */
|
||||
FT_EXPORT( void )
|
||||
FT_Outline_Translate( FT_Outline* outline,
|
||||
FT_Pos xOffset,
|
||||
FT_Pos yOffset );
|
||||
FT_Outline_Translate( const FT_Outline* outline,
|
||||
FT_Pos xOffset,
|
||||
FT_Pos yOffset );
|
||||
|
||||
|
||||
/*************************************************************************/
|
||||
|
@ -299,8 +299,8 @@ FT_BEGIN_HEADER
|
|||
/* outline's points. */
|
||||
/* */
|
||||
FT_EXPORT( void )
|
||||
FT_Outline_Transform( FT_Outline* outline,
|
||||
const FT_Matrix* matrix );
|
||||
FT_Outline_Transform( const FT_Outline* outline,
|
||||
const FT_Matrix* matrix );
|
||||
|
||||
|
||||
/*************************************************************************/
|
||||
|
|
|
@ -464,9 +464,9 @@
|
|||
/* documentation is in ftoutln.h */
|
||||
|
||||
FT_EXPORT_DEF( void )
|
||||
FT_Outline_Translate( FT_Outline* outline,
|
||||
FT_Pos xOffset,
|
||||
FT_Pos yOffset )
|
||||
FT_Outline_Translate( const FT_Outline* outline,
|
||||
FT_Pos xOffset,
|
||||
FT_Pos yOffset )
|
||||
{
|
||||
FT_UShort n;
|
||||
FT_Vector* vec = outline->points;
|
||||
|
@ -641,8 +641,8 @@
|
|||
/* documentation is in ftoutln.h */
|
||||
|
||||
FT_EXPORT_DEF( void )
|
||||
FT_Outline_Transform( FT_Outline* outline,
|
||||
const FT_Matrix* matrix )
|
||||
FT_Outline_Transform( const FT_Outline* outline,
|
||||
const FT_Matrix* matrix )
|
||||
{
|
||||
FT_Vector* vec = outline->points;
|
||||
FT_Vector* limit = vec + outline->n_points;
|
||||
|
|
|
@ -3251,7 +3251,7 @@
|
|||
|
||||
static void
|
||||
ft_black_reset( TRaster_Instance* raster,
|
||||
const char* pool_base,
|
||||
char* pool_base,
|
||||
long pool_size )
|
||||
{
|
||||
if ( (&ras) && pool_base && pool_size >= 4096 )
|
||||
|
@ -3294,8 +3294,8 @@
|
|||
ft_black_render( TRaster_Instance* raster,
|
||||
const FT_Raster_Params* params )
|
||||
{
|
||||
FT_Outline* outline = (FT_Outline*)params->source;
|
||||
const FT_Bitmap* target_map = params->target;
|
||||
const FT_Outline* outline = (const FT_Outline*)params->source;
|
||||
const FT_Bitmap* target_map = params->target;
|
||||
|
||||
|
||||
if ( !(&ras) || !ras.buff || !ras.sizeBuff )
|
||||
|
|
|
@ -1963,8 +1963,8 @@
|
|||
gray_raster_render( PRaster raster,
|
||||
const FT_Raster_Params* params )
|
||||
{
|
||||
FT_Outline* outline = (FT_Outline*)params->source;
|
||||
const FT_Bitmap* target_map = params->target;
|
||||
const FT_Outline* outline = (const FT_Outline*)params->source;
|
||||
const FT_Bitmap* target_map = params->target;
|
||||
|
||||
|
||||
if ( !raster || !raster->cells || !raster->max_cells )
|
||||
|
@ -2131,7 +2131,7 @@
|
|||
|
||||
static void
|
||||
gray_raster_reset( FT_Raster raster,
|
||||
const char* pool_base,
|
||||
char* pool_base,
|
||||
long pool_size )
|
||||
{
|
||||
PRaster rast = (PRaster)raster;
|
||||
|
|
Loading…
Reference in New Issue