Commit bf84e602ae5c8636626809730ebf819d151fc89b

henry 2001-08-05T22:16:32

Initialisation list. Made render() arg const.

diff --git a/include/FTPixmapGlyph.h b/include/FTPixmapGlyph.h
index f8396b3..d014ca1 100755
--- a/include/FTPixmapGlyph.h
+++ b/include/FTPixmapGlyph.h
@@ -12,9 +12,9 @@ class FTPixmapGlyph : public FTGlyph
 {
 	public:
 		// methods
-		FTPixmapGlyph( FT_Glyph glyph, int glyphIndex);
+		FTPixmapGlyph( FT_Glyph glyph, const int glyphIndex);
 		virtual ~FTPixmapGlyph();
-		virtual float Render( FT_Vector& v);
+		virtual float Render( const FT_Vector& v);
 		
 		// attributes
 
diff --git a/src/FTPixmapGlyph.cpp b/src/FTPixmapGlyph.cpp
index de7726f..1860a20 100755
--- a/src/FTPixmapGlyph.cpp
+++ b/src/FTPixmapGlyph.cpp
@@ -4,8 +4,12 @@
 #include	"FTGL.h"
 
 
-FTPixmapGlyph::FTPixmapGlyph( FT_Glyph glyph, int gi)
-:	FTGlyph(gi)
+FTPixmapGlyph::FTPixmapGlyph( FT_Glyph glyph, const int gi)
+:	FTGlyph(gi),
+	destWidth(0),
+	destHeight(0),
+	numGreys(0),
+	data(0)
 {
 	if( !glyph->format == ft_glyph_format_bitmap)
 	{ return;}
@@ -63,7 +67,7 @@ FTPixmapGlyph::~FTPixmapGlyph()
 }
 
 
-float FTPixmapGlyph::Render( FT_Vector& pen)
+float FTPixmapGlyph::Render( const FT_Vector& pen)
 {
 	if( data != 0 )
 	{