Another update on FTGL texture fonts drawing. Added the same floor() trick

to precisely align the glyphs to pixel coordinates as used in the Pixmap
version. It now looks fully identical here.
This commit is contained in:
2005-05-11 21:09:13 +00:00
parent 6bc1dd4665
commit 884c94500b
2 changed files with 11 additions and 6 deletions

View File

@@ -2281,10 +2281,10 @@ void drawinfospace(ScrArea *sa, void *spacedata)
if(curarea->winx<=1280.0) {
fac= ((float)curarea->winx)/1280.0f;
myortho2(0.0, 1280.0, 0.0, curarea->winy/fac);
myortho2(0.375, 1280.375, 0.375, curarea->winy/fac + 0.375);
}
else {
myortho2(0.0, (float)curarea->winx, 0.0, (float)curarea->winy);
myortho2(0.375, (float)curarea->winx + 0.375, 0.375, (float)curarea->winy + 0.375);
}
sprintf(naam, "infowin %d", curarea->win);