From 639b641722c21cb6aae12ced9535be64c1c7e349 Mon Sep 17 00:00:00 2001 From: YuSanka Date: Thu, 14 Mar 2019 15:45:52 +0100 Subject: [PATCH] Disabled DoubleBuffered for Tabs + set helper functions like a static (GUI_ObjectList.cpp) --- src/slic3r/GUI/GUI_ObjectList.cpp | 4 ++-- src/slic3r/GUI/Tab.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/slic3r/GUI/GUI_ObjectList.cpp b/src/slic3r/GUI/GUI_ObjectList.cpp index f6ccbbd7d..7eef82063 100644 --- a/src/slic3r/GUI/GUI_ObjectList.cpp +++ b/src/slic3r/GUI/GUI_ObjectList.cpp @@ -44,12 +44,12 @@ static PrinterTechnology printer_technology() } // Config from current edited printer preset -DynamicPrintConfig& printer_config() +static DynamicPrintConfig& printer_config() { return wxGetApp().preset_bundle->printers.get_edited_preset().config; } -int extruders_count() +static int extruders_count() { return printer_technology() == ptSLA ? 1 : printer_config().option("nozzle_diameter")->values.size(); diff --git a/src/slic3r/GUI/Tab.cpp b/src/slic3r/GUI/Tab.cpp index bd0adcab0..ae33443c3 100644 --- a/src/slic3r/GUI/Tab.cpp +++ b/src/slic3r/GUI/Tab.cpp @@ -74,7 +74,7 @@ void Tab::set_type() void Tab::create_preset_tab() { #ifdef __WINDOWS__ - SetDoubleBuffered(true); +// SetDoubleBuffered(true); #endif //__WINDOWS__ m_preset_bundle = wxGetApp().preset_bundle;