mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-09-18 02:23:14 +08:00
macos build fix
This commit is contained in:
parent
0b549078cc
commit
a27258a8be
@ -20,6 +20,7 @@
|
|||||||
#include <wx/choice.h>
|
#include <wx/choice.h>
|
||||||
#include <wx/combo.h>
|
#include <wx/combo.h>
|
||||||
#include <wx/checkbox.h>
|
#include <wx/checkbox.h>
|
||||||
|
#include <wx/display.h>
|
||||||
|
|
||||||
// this include must follow the wxWidgets ones or it won't compile on Windows -> see http://trac.wxwidgets.org/ticket/2421
|
// this include must follow the wxWidgets ones or it won't compile on Windows -> see http://trac.wxwidgets.org/ticket/2421
|
||||||
#include "libslic3r/Print.hpp"
|
#include "libslic3r/Print.hpp"
|
||||||
@ -210,7 +211,9 @@ bool Preview::init(wxWindow* parent, Bed3D& bed, Camera& camera, GLToolbar& view
|
|||||||
return false;
|
return false;
|
||||||
|
|
||||||
//get display size to see if we have to compress the labels
|
//get display size to see if we have to compress the labels
|
||||||
wxDisplay display(wxDisplay::GetFromWindow(parent));
|
|
||||||
|
const auto idx = wxDisplay::GetFromWindow(parent);
|
||||||
|
wxDisplay display(idx != wxNOT_FOUND ? idx : 0u);
|
||||||
wxRect screen = display.GetClientArea();
|
wxRect screen = display.GetClientArea();
|
||||||
ScreenWidth width_screen = ScreenWidth::large;
|
ScreenWidth width_screen = ScreenWidth::large;
|
||||||
if (screen.width < 1900)
|
if (screen.width < 1900)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user