diff options
author | Vojtech Kral <vojtech@kral.hk> | 2019-01-24 13:30:29 +0300 |
---|---|---|
committer | Vojtech Kral <vojtech@kral.hk> | 2019-01-24 22:03:12 +0300 |
commit | d1c569dd5708811ed472c8780e325b6750e4b10a (patch) | |
tree | b57233952d86447eef741ed395caa94497b13c01 /src/slic3r/GUI/ImGuiWrapper.hpp | |
parent | 28f1a6f2561d915443e20b7e8e911d8821be4c69 (diff) |
Mac: Implement Retina for the 3D scene, fix #97
Diffstat (limited to 'src/slic3r/GUI/ImGuiWrapper.hpp')
-rw-r--r-- | src/slic3r/GUI/ImGuiWrapper.hpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/slic3r/GUI/ImGuiWrapper.hpp b/src/slic3r/GUI/ImGuiWrapper.hpp index 5293bee26..47a1fb937 100644 --- a/src/slic3r/GUI/ImGuiWrapper.hpp +++ b/src/slic3r/GUI/ImGuiWrapper.hpp @@ -21,6 +21,7 @@ class ImGuiWrapper FontsMap m_fonts; unsigned m_font_texture; + float m_style_scaling; unsigned m_mouse_buttons; bool m_disabled; @@ -32,6 +33,7 @@ public: void read_glsl_version(); void set_display_size(float w, float h); + void set_style_scaling(float scaling); bool update_mouse_data(wxMouseEvent &evt); void new_frame(); @@ -58,6 +60,7 @@ public: bool want_text_input() const; bool want_any_input() const; private: + void init_default_font(float scaling); void create_device_objects(); void create_fonts_texture(); void render_draw_data(ImDrawData *draw_data); |