Match DP for no-size arg stringwidth.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5473 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
76f927f789
commit
83199ef8d6
1 changed files with 3 additions and 0 deletions
|
@ -522,6 +522,9 @@ void QCBUILTIN PF_CL_stringwidth(pubprogfuncs_t *prinst, struct globalvars_s *pr
|
|||
px = Font_LineScaleWidth(buffer, end);
|
||||
Font_EndString(NULL);
|
||||
|
||||
if (!size) //for compat with dp, divide by 8 after... because weird.
|
||||
px /= 8;
|
||||
|
||||
G_FLOAT(OFS_RETURN) = (px * vid.width) / vid.rotpixelwidth;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue