mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-19 03:13:39 +00:00
Fixed mode icons rendering under OSX (MacOSX10.14.sdk)
This commit is contained in:
@@ -2929,7 +2929,13 @@ void Tab::OnTreeSelChange(wxTreeEvent& event)
|
|||||||
#ifdef __linux__
|
#ifdef __linux__
|
||||||
std::unique_ptr<wxWindowUpdateLocker> no_updates(new wxWindowUpdateLocker(this));
|
std::unique_ptr<wxWindowUpdateLocker> no_updates(new wxWindowUpdateLocker(this));
|
||||||
#else
|
#else
|
||||||
// wxWindowUpdateLocker noUpdates(this);
|
/* On Windows we use DoubleBuffering during rendering,
|
||||||
|
* so on Window is no needed to call a Freeze/Thaw functions.
|
||||||
|
* But under OSX (builds compiled with MacOSX10.14.sdk) wxStaticBitmap rendering is broken without Freeze/Thaw call.
|
||||||
|
*/
|
||||||
|
#ifdef __WXOSX__
|
||||||
|
wxWindowUpdateLocker noUpdates(this);
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (m_pages.empty())
|
if (m_pages.empty())
|
||||||
|
|||||||
Reference in New Issue
Block a user