Fix glyph width calculation in Text_Paint_Limit
Text_Width's scale argument will be multiplied by glyphScale, so don't pass useScale that is already multiplied by glyphScale as this makes the scale too big.
This commit is contained in:
1 parent
ec6916ded5
commit
b85935d30c
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -537,7 +537,7 @@ static void Text_Paint_Limit(float *maxX, float x, float y, float scale, vec4_t
|
||||
continue;
|
||||
} else {
|
||||
float yadj = useScale * glyph->top;
|
||||
if (Text_Width(s, useScale, 1) + x > max) {
|
||||
if (Text_Width(s, scale, 1) + x > max) {
|
||||
*maxX = 0;
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user