Commit f03d965b3e1d0b23fc713eb810f7c7574b4d90e1

henry 2001-08-05T21:35:51

Made render() arg const

diff --git a/include/FTBitmapGlyph.h b/include/FTBitmapGlyph.h
index 6ad407e..3c0a811 100755
--- a/include/FTBitmapGlyph.h
+++ b/include/FTBitmapGlyph.h
@@ -14,7 +14,7 @@ class	FTBitmapGlyph : public FTGlyph
 		// methods
 		FTBitmapGlyph( FT_Glyph glyph, int glyphIndex);
 		virtual ~FTBitmapGlyph();
-		virtual float Render( FT_Vector& v);
+		virtual float Render( const FT_Vector& v);
 		
 		// attributes
 		
diff --git a/src/FTBitmapGlyph.cpp b/src/FTBitmapGlyph.cpp
index 42e6469..c7312cb 100755
--- a/src/FTBitmapGlyph.cpp
+++ b/src/FTBitmapGlyph.cpp
@@ -5,7 +5,10 @@
 
 
 FTBitmapGlyph::FTBitmapGlyph( FT_Glyph glyph, int gi)
-:	FTGlyph( gi)
+:	FTGlyph( gi),
+	destWidth(0),
+	destHeight(0),
+	data(0)
 {
 	if( !glyph->format == ft_glyph_format_bitmap)
 	{ return;}
@@ -59,7 +62,7 @@ FTBitmapGlyph::~FTBitmapGlyph()
 }
 
 
-float FTBitmapGlyph::Render( FT_Vector& pen)
+float FTBitmapGlyph::Render( const FT_Vector& pen)
 {
 	if( data != 0 )
 	{