Fixed: Double font width scaling
--HG-- branch : experimental-ui-scaling
This commit is contained in:
parent
f56e9e5e4c
commit
7b0d1cd056
1 changed files with 1 additions and 1 deletions
|
@ -2293,7 +2293,7 @@ namespace NLGUI
|
|||
singleChar[0] = textValue[i];
|
||||
si = textContext.getStringInfo(singleChar);
|
||||
sw = si.StringWidth / CViewRenderer::getInstance()->getInterfaceScale();
|
||||
px += sw / CViewRenderer::getInstance()->getInterfaceScale();
|
||||
px += sw;
|
||||
// the character is at the i - 1 position
|
||||
if (px > x)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue