ref: 8ae1dceb94effa59a307c0b778b37483f808f3d4
parent: e623bfa8e2b4699619aaf27c687a20931fab87b1
author: Werner Lemberg <[email protected]>
date: Fri May 20 02:22:20 EDT 2005
* 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.
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,15 @@
+2005-05-20 Kirill Smelkov <[email protected]>
+
+ * 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 <[email protected]>
* src/raster/ftmisc.h: New file. Only needed if ftraster.c is
--- a/include/freetype/ftimage.h
+++ b/include/freetype/ftimage.h
@@ -1031,7 +1031,7 @@
typedef struct FT_Raster_Params_
{
const FT_Bitmap* target;
- void* source;
+ const void* source;
int flags;
FT_SpanFunc gray_spans;
FT_SpanFunc black_spans;
--- a/include/freetype/ftoutln.h
+++ b/include/freetype/ftoutln.h
@@ -250,9 +250,9 @@
/* 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 @@
/* 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 );
/*************************************************************************/
--- a/src/base/ftoutln.c
+++ b/src/base/ftoutln.c
@@ -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;
--- a/src/raster/ftraster.c
+++ b/src/raster/ftraster.c
@@ -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 )
--- a/src/smooth/ftgrays.c
+++ b/src/smooth/ftgrays.c
@@ -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;