Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/supermerill/SuperSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbubnikv <bubnikv@gmail.com>2019-12-05 17:04:59 +0300
committerbubnikv <bubnikv@gmail.com>2019-12-05 17:04:59 +0300
commit073579eefc5d796c4f4e15c8fe307aa5708c85db (patch)
treee96df17a452a143c67d3e2019923826bfb350da4 /src/slic3r/GUI/Tab.cpp
parentf80ed539a7977991f852bf263042fffda6cfd24c (diff)
parentf991017a3f972c57ec5855561cafc61d6201dd16 (diff)
Merge branch 'master' of https://github.com/Prusa3d/PrusaSlicer
Diffstat (limited to 'src/slic3r/GUI/Tab.cpp')
-rw-r--r--src/slic3r/GUI/Tab.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/slic3r/GUI/Tab.cpp b/src/slic3r/GUI/Tab.cpp
index fc085cb32..adc923b64 100644
--- a/src/slic3r/GUI/Tab.cpp
+++ b/src/slic3r/GUI/Tab.cpp
@@ -2930,7 +2930,13 @@ void Tab::OnTreeSelChange(wxTreeEvent& event)
#ifdef __linux__
std::unique_ptr<wxWindowUpdateLocker> no_updates(new wxWindowUpdateLocker(this));
#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
if (m_pages.empty())