mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-26 22:01:50 +00:00
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:
parent
f6b3416ce7
commit
7188917d6c
1 changed files with 2 additions and 2 deletions
|
@ -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]);
|
||||||
|
|
Loading…
Reference in a new issue