Commit 58bbd000314895713a9e71171844e09d7c2ab65d

henry 2001-07-30T04:47:51

Fixing the psosition stuff

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
diff --git a/src/FTBitmapGlyph.cpp b/src/FTBitmapGlyph.cpp
index 50e104a..42e6469 100755
--- a/src/FTBitmapGlyph.cpp
+++ b/src/FTBitmapGlyph.cpp
@@ -71,12 +71,12 @@ float FTBitmapGlyph::Render( FT_Vector& pen)
 		glPixelStorei( GL_UNPACK_ALIGNMENT, 1);
 
 		// Move the glyph origin
-		glBitmap( 0, 0, 0.0, 0.0, pen.x - pos.x, pen.y - pos.y, (const GLubyte *)0 );
+		glBitmap( 0, 0, 0.0, 0.0, pen.x + pos.x, pen.y - pos.y, (const GLubyte *)0 );
 
 		glBitmap( destWidth, destHeight, 0.0f, 0.0, 0.0, 0.0, (const GLubyte *)data);
 
 		// Restore the glyph origin
-		glBitmap( 0, 0, 0.0, 0.0, -pen.x, -pen.y + pos.y, (const GLubyte *)0 );
+		glBitmap( 0, 0, 0.0, 0.0, -pen.x - pos.x, -pen.y + pos.y, (const GLubyte *)0 );
 
 		glPopClientAttrib();
 	}