[Plib-cvs] plib/src/fnt fntBitmap.cxx,1.2,1.3
Brought to you by:
sjbaker
From: Bram S. <br...@us...> - 2005-07-05 15:44:53
|
Update of /cvsroot/plib/plib/src/fnt In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21605 Modified Files: fntBitmap.cxx Log Message: Completed support for negative coords Index: fntBitmap.cxx =================================================================== RCS file: /cvsroot/plib/plib/src/fnt/fntBitmap.cxx,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- fntBitmap.cxx 4 Jul 2005 14:58:54 -0000 1.2 +++ fntBitmap.cxx 5 Jul 2005 15:44:40 -0000 1.3 @@ -71,7 +71,8 @@ if (c == '\n') { curpos[1] -= height; } else { - glRasterPos3fv(curpos); + glRasterPos2i(0,0); // beware - coordinate may be negative + glBitmap(0, 0, 0, 0, curpos[0], curpos[1], NULL); int i = (GLubyte) c - first; if (i >= 0 && i < count) { glBitmap(data[i][0], height, xorig, yorig, (float) data[i][0], 0, data[i] + 1); @@ -90,7 +91,8 @@ if (s[i] == '\n') { curpos[0] = x0; curpos[1] -= height; - glRasterPos3fv(curpos); + glRasterPos2i(0,0); // beware - coordinate may be negative + glBitmap(0, 0, 0, 0, curpos[0], curpos[1], NULL); } else { int j = (GLubyte) s[i] - first; if (j >= 0 && j < count) { |