imgui: Refactor font size, font initialization

This commit is contained in:
Vojtech Kral 2019-04-01 14:12:05 +02:00
parent 32a49d1468
commit 88cc93cdc9
4 changed files with 48 additions and 41 deletions

View file

@ -81,7 +81,7 @@ IMPLEMENT_APP(GUI_App)
GUI_App::GUI_App()
: wxApp()
, m_em_unit(10)
, m_imgui(nullptr)
, m_imgui(new ImGuiWrapper())
{}
bool GUI_App::OnInit()
@ -138,7 +138,6 @@ bool GUI_App::OnInit()
// initialize label colors and fonts
init_label_colours();
init_fonts();
m_imgui.reset(new ImGuiWrapper(m_normal_font.GetPixelSize().y));
load_language();