From 7b0d1cd0563e757e7bdeb663fa9b6a571d3fb550 Mon Sep 17 00:00:00 2001 From: Nimetu Date: Sat, 13 Aug 2016 23:32:54 +0300 Subject: [PATCH] Fixed: Double font width scaling --HG-- branch : experimental-ui-scaling --- code/nel/src/gui/view_text.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/nel/src/gui/view_text.cpp b/code/nel/src/gui/view_text.cpp index 0ff74c963..2be91d0d0 100644 --- a/code/nel/src/gui/view_text.cpp +++ b/code/nel/src/gui/view_text.cpp @@ -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) {