imgui: Refactor font size, font initialization

This commit is contained in:
Vojtech Kral committed 2019-04-01 14:28:39 +02:00
1 parent 32a49d1468
commit 88cc93cdc9
4 files changed
+48 -41

No files matched your search

+1 -2
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();