Fixed: Double font width scaling

--HG--
branch : experimental-ui-scaling
feature/pipeline-tools
Nimetu 8 years ago
parent f56e9e5e4c
commit 7b0d1cd056

@ -2293,7 +2293,7 @@ namespace NLGUI
singleChar[0] = textValue[i]; singleChar[0] = textValue[i];
si = textContext.getStringInfo(singleChar); si = textContext.getStringInfo(singleChar);
sw = si.StringWidth / CViewRenderer::getInstance()->getInterfaceScale(); sw = si.StringWidth / CViewRenderer::getInstance()->getInterfaceScale();
px += sw / CViewRenderer::getInstance()->getInterfaceScale(); px += sw;
// the character is at the i - 1 position // the character is at the i - 1 position
if (px > x) if (px > x)
{ {

Loading…
Cancel
Save