From 7188917d6c15c1fa2c88da2e99a8106e1ac3cd91 Mon Sep 17 00:00:00 2001 From: Spoike Date: Thu, 5 Nov 2009 01:07:08 +0000 Subject: [PATCH] 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 --- engine/gl/gl_font.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/engine/gl/gl_font.c b/engine/gl/gl_font.c index 13803e0d..7e9276a6 100644 --- a/engine/gl/gl_font.c +++ b/engine/gl/gl_font.c @@ -1045,8 +1045,8 @@ int Font_DrawChar(int px, int py, unsigned int charcode) } else { - sx = ((px-0.5+c->left)*(int)vid.width) / (float)vid.pixelwidth; - sy = ((py-0.5+c->top)*(int)vid.height) / (float)vid.pixelheight; + sx = ((px-vid.pixeloffset+c->left)*(int)vid.width) / (float)vid.pixelwidth; + sy = ((py-vid.pixeloffset+c->top)*(int)vid.height) / (float)vid.pixelheight; sw = ((c->bmw+1)*vid.width) / (float)vid.pixelwidth; sh = ((c->bmh+1)*vid.height) / (float)vid.pixelheight; v = Font_BeginChar(fontplanes.texnum[c->texplane]);