First experiment to fix layouts on hdpi
This commit is contained in:
parent
1605c23e25
commit
ba6206ab62
5 changed files with 15 additions and 4 deletions
src/slic3r/GUI
|
@ -53,6 +53,12 @@ wxFrame(NULL, wxID_ANY, SLIC3R_BUILD, wxDefaultPosition, wxDefaultSize, wxDEFAUL
|
|||
SLIC3R_VERSION +
|
||||
_(L(" - Remember to check for updates at http://github.com/prusa3d/slic3r/releases")));
|
||||
|
||||
|
||||
// initialize default width_unit according to the width of the one symbol ("x") of the current system font
|
||||
const wxString x_str = "x";
|
||||
const wxSize size = GetTextExtent(x_str);
|
||||
wxGetApp().set_width_unit(size.x);
|
||||
|
||||
// initialize tabpanel and menubar
|
||||
init_tabpanel();
|
||||
init_menubar();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue