mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-09-21 20:06:40 +00:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user