imgui: Get font size from wxWidgets, fix #2043

This commit is contained in:
Vojtech Kral 2019-03-29 14:57:53 +01:00
parent 32ed064797
commit 3cfb234e86
3 changed files with 23 additions and 27 deletions

View file

@ -22,6 +22,7 @@ class ImGuiWrapper
FontsMap m_fonts;
const ImWchar *m_glyph_ranges;
float m_font_size;
unsigned m_font_texture;
float m_style_scaling;
unsigned m_mouse_buttons;
@ -30,10 +31,9 @@ class ImGuiWrapper
std::string m_clipboard_text;
public:
ImGuiWrapper();
ImGuiWrapper(float font_size);
~ImGuiWrapper();
bool init();
void read_glsl_version();
void set_language(const std::string &language);
@ -73,7 +73,7 @@ public:
bool want_any_input() const;
private:
void init_default_font(float scaling);
void init_default_font();
void create_device_objects();
void create_fonts_texture();
void init_input();