Font_StringWidth: Fix me being tired and not returning anything valid in this
This commit is contained in:
parent
5a3f59a24c
commit
155b8c343b
1 changed files with 3 additions and 1 deletions
|
@ -156,8 +156,10 @@ Font_GetHeight(font_s fnt)
|
|||
float
|
||||
Font_StringWidth(string strText, float flColors, font_s fnt)
|
||||
{
|
||||
float w;
|
||||
drawfont = (float)fnt.iID;
|
||||
stringwidth(strText, flColors, [(float)fnt.iScaleX,(float)fnt.iScaleY]);
|
||||
w = stringwidth(strText, flColors, [fnt.iScaleX, fnt.iScaleY]);
|
||||
drawfont = 0;
|
||||
drawfontscale = [1,1,0];
|
||||
return w;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue