2005-06-09 Kirill Smelkov * include/freetype/ftimage.h (FT_Outline_MoveToFunc, FT_Outline_LineToFunc, FT_Outline_ConicToFunc, FT_Outline_CubicToFunc, FT_SpanFunc, FT_Raster_RenderFunc), include/freetype/ftrender.h (FT_Glyph_TransformFunc, FT_Renderer_RenderFunc, FT_Renderer_TransformFunc): Decorate parameters with `const' where appropriate. Index: freetype2/include/freetype/ftimage.h =================================================================== --- freetype2.orig/include/freetype/ftimage.h 2005-06-09 10:43:02.000000000 +0400 +++ freetype2/include/freetype/ftimage.h 2005-06-09 10:47:03.000000000 +0400 @@ -486,8 +486,8 @@ /* Error code. 0 means success. */ /* */ typedef int - (*FT_Outline_MoveToFunc)( FT_Vector* to, - void* user ); + (*FT_Outline_MoveToFunc)( const FT_Vector* to, + void* user ); #define FT_Outline_MoveTo_Func FT_Outline_MoveToFunc @@ -512,8 +512,8 @@ /* Error code. 0 means success. */ /* */ typedef int - (*FT_Outline_LineToFunc)( FT_Vector* to, - void* user ); + (*FT_Outline_LineToFunc)( const FT_Vector* to, + void* user ); #define FT_Outline_LineTo_Func FT_Outline_LineToFunc @@ -542,9 +542,9 @@ /* Error code. 0 means success. */ /* */ typedef int - (*FT_Outline_ConicToFunc)( FT_Vector* control, - FT_Vector* to, - void* user ); + (*FT_Outline_ConicToFunc)( const FT_Vector* control, + const FT_Vector* to, + void* user ); #define FT_Outline_ConicTo_Func FT_Outline_ConicToFunc @@ -573,10 +573,10 @@ /* Error code. 0 means success. */ /* */ typedef int - (*FT_Outline_CubicToFunc)( FT_Vector* control1, - FT_Vector* control2, - FT_Vector* to, - void* user ); + (*FT_Outline_CubicToFunc)( const FT_Vector* control1, + const FT_Vector* control2, + const FT_Vector* to, + void* user ); #define FT_Outline_CubicTo_Func FT_Outline_CubicToFunc @@ -861,10 +861,10 @@ /* only for those scanlines that do have `gray' pixels on them. */ /* */ typedef void - (*FT_SpanFunc)( int y, - int count, - FT_Span* spans, - void* user ); + (*FT_SpanFunc)( int y, + int count, + const FT_Span* spans, + void* user ); #define FT_Raster_Span_Func FT_SpanFunc @@ -1183,8 +1183,8 @@ /* composition). */ /* */ typedef int - (*FT_Raster_RenderFunc)( FT_Raster raster, - FT_Raster_Params* params ); + (*FT_Raster_RenderFunc)( FT_Raster raster, + const FT_Raster_Params* params ); #define FT_Raster_Render_Func FT_Raster_RenderFunc Index: freetype2/include/freetype/ftrender.h =================================================================== --- freetype2.orig/include/freetype/ftrender.h 2005-06-09 10:43:02.000000000 +0400 +++ freetype2/include/freetype/ftrender.h 2005-06-09 10:43:33.000000000 +0400 @@ -46,9 +46,9 @@ (*FT_Glyph_DoneFunc)( FT_Glyph glyph ); typedef void - (*FT_Glyph_TransformFunc)( FT_Glyph glyph, - FT_Matrix* matrix, - FT_Vector* delta ); + (*FT_Glyph_TransformFunc)( FT_Glyph glyph, + const FT_Matrix* matrix, + const FT_Vector* delta ); typedef void (*FT_Glyph_GetBBoxFunc)( FT_Glyph glyph, @@ -85,16 +85,16 @@ typedef FT_Error - (*FT_Renderer_RenderFunc)( FT_Renderer renderer, - FT_GlyphSlot slot, - FT_UInt mode, - FT_Vector* origin ); + (*FT_Renderer_RenderFunc)( FT_Renderer renderer, + FT_GlyphSlot slot, + FT_UInt mode, + const FT_Vector* origin ); typedef FT_Error - (*FT_Renderer_TransformFunc)( FT_Renderer renderer, - FT_GlyphSlot slot, - FT_Matrix* matrix, - FT_Vector* delta ); + (*FT_Renderer_TransformFunc)( FT_Renderer renderer, + FT_GlyphSlot slot, + const FT_Matrix* matrix, + const FT_Vector* delta ); typedef void