[Plib-cvs] plib/src/fnt fntBitmap.cxx,1.1,1.2
Brought to you by:
sjbaker
From: Bram S. <br...@us...> - 2005-07-04 14:59:05
|
Update of /cvsroot/plib/plib/src/fnt In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26046 Modified Files: fntBitmap.cxx Log Message: Fixed text with negative coordinates according to patch Franz Melchior. Index: fntBitmap.cxx =================================================================== RCS file: /cvsroot/plib/plib/src/fnt/fntBitmap.cxx,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- fntBitmap.cxx 15 Feb 2004 19:51:23 -0000 1.1 +++ fntBitmap.cxx 4 Jul 2005 14:58:54 -0000 1.2 @@ -84,7 +84,8 @@ void fntBitmapFont::puts ( sgVec3 curpos, float pointsize, float italic, const char *s ) { float x0 = curpos[0]; - glRasterPos3fv(curpos); + glRasterPos2i(0,0); // beware - coordinate may be negative + glBitmap(0, 0, 0, 0, curpos[0], curpos[1], NULL); for (int i = 0; s[i] != '\0'; i++) { if (s[i] == '\n') { curpos[0] = x0; |