Fixed: Double font width scaling

--HG--
branch : experimental-ui-scaling
This commit is contained in:
Nimetu 2016-08-13 23:32:54 +03:00
parent f56e9e5e4c
commit 7b0d1cd056

View file

@ -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)
{