Commit 531d8d7c authored by NTAuthority's avatar NTAuthority

ugly reading of r_width/r_height for gfx console

parent f93acbfc
......@@ -59,6 +59,12 @@ private:
: m_screenWidth(1920), m_screenHeight(1080), m_active(false), m_keyListener(std::bind(&GfxConsole::HandleKey, this, std::placeholders::_1)), m_charListener(std::bind(&GfxConsole::HandleChar, this, std::placeholders::_1)), m_screenTop(0)
// update width/height from console variables
ConsoleVariableManager* varMan = console::GetDefaultContext()->GetVariableManager();
m_screenWidth = atoi(varMan->FindEntryRaw("r_width")->GetValue().c_str());
m_screenHeight = atoi(varMan->FindEntryRaw("r_height")->GetValue().c_str());
// set size
m_screenSize = 1;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment