1
0
Fork 0
forked from fte/fteqw

Whoops, that fixed d3d, but broke GL. Anyway, here's a fix that works for both.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/branches/wip@3404 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2009-11-05 01:07:08 +00:00
parent f6b3416ce7
commit 7188917d6c

View file

@ -1045,8 +1045,8 @@ int Font_DrawChar(int px, int py, unsigned int charcode)
} }
else else
{ {
sx = ((px-0.5+c->left)*(int)vid.width) / (float)vid.pixelwidth; sx = ((px-vid.pixeloffset+c->left)*(int)vid.width) / (float)vid.pixelwidth;
sy = ((py-0.5+c->top)*(int)vid.height) / (float)vid.pixelheight; sy = ((py-vid.pixeloffset+c->top)*(int)vid.height) / (float)vid.pixelheight;
sw = ((c->bmw+1)*vid.width) / (float)vid.pixelwidth; sw = ((c->bmw+1)*vid.width) / (float)vid.pixelwidth;
sh = ((c->bmh+1)*vid.height) / (float)vid.pixelheight; sh = ((c->bmh+1)*vid.height) / (float)vid.pixelheight;
v = Font_BeginChar(fontplanes.texnum[c->texplane]); v = Font_BeginChar(fontplanes.texnum[c->texplane]);