ref: c1205799f5bfab9e9b9187fdd8094dd347c65b13
parent: 81d02dbc04145e0b39e399c8ec6d2e43dc2ac98e
author: David Turner <[email protected]>
date: Thu May 4 21:38:46 EDT 2000
changes the type of the "mode" parameter in FT_Set_Raster_Mode to unsigned long (easier than string to compare)
--- a/include/freetype.h
+++ b/include/freetype.h
@@ -2370,7 +2370,7 @@
EXPORT_DEF
FT_Error FT_Set_Raster_Mode( FT_Library library,
FT_Glyph_Format format,
- const char* mode,
+ unsigned long mode,
void* args );
--- a/include/ftimage.h
+++ b/include/ftimage.h
@@ -857,14 +857,14 @@
*
* <Input>
* raster :: handle to new raster object
- * mode :: an C string naming the mode or property to change
+ * mode :: a 4-byte tag used to name the mode or property
* args :: a pointer to the new mode/property to use
*
**************************************************************************/
- typedef int (*FT_Raster_Set_Mode_Func)( FT_Raster raster,
- const char* mode,
- void* args );
+ typedef int (*FT_Raster_Set_Mode_Func)( FT_Raster raster,
+ unsigned long mode,
+ void* args );
/**************************************************************************
*
--- a/src/base/ftobjs.c
+++ b/src/base/ftobjs.c
@@ -594,7 +594,7 @@
EXPORT_FUNC
FT_Error FT_Set_Raster_Mode( FT_Library library,
FT_Glyph_Format format,
- const char* mode,
+ unsigned long mode,
void* args )
{
FT_Raster_Funcs funcs;