Commit fb452009599696984a1620f20be9d8f52dca3fdc

henry 2001-07-30T04:48:17

Fixing the position stuff

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
diff --git a/src/FTPixmapGlyph.cpp b/src/FTPixmapGlyph.cpp
index 1c18dd3..de7726f 100755
--- a/src/FTPixmapGlyph.cpp
+++ b/src/FTPixmapGlyph.cpp
@@ -70,14 +70,14 @@ float FTPixmapGlyph::Render( FT_Vector& pen)
 		glPushClientAttrib( GL_CLIENT_PIXEL_STORE_BIT);
 		
 		// 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 );
 
 		glPixelStorei( GL_UNPACK_ROW_LENGTH, destWidth);
 
 		glDrawPixels( destWidth, destHeight, GL_RGBA, GL_UNSIGNED_BYTE, (const GLvoid*)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();
 	}