Use direct gui.scale instead of reciprocal gui.scale

Patch by Dariost.

Differential Revision: https://code.wildfiregames.com/D328
This was SVN commit r19774.
This commit is contained in:
Imarok
2017-06-14 17:13:44 +00:00
parent 2729596624
commit b94a54b18a
9 changed files with 23 additions and 23 deletions
+2 -2
View File
@@ -37,8 +37,8 @@ CTextRenderer::CTextRenderer(const CShaderProgramPtr& shader) :
void CTextRenderer::ResetTransform()
{
float xres = g_xres * g_GuiScale;
float yres = g_yres * g_GuiScale;
float xres = g_xres / g_GuiScale;
float yres = g_yres / g_GuiScale;
m_Transform.SetIdentity();
m_Transform.Scale(1.0f, -1.f, 1.0f);