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:
authorVojtech Kral <vojtech@kral.hk>2019-01-24 13:30:29 +0300
committerVojtech Kral <vojtech@kral.hk>2019-01-24 22:03:12 +0300
commitd1c569dd5708811ed472c8780e325b6750e4b10a (patch)
treeb57233952d86447eef741ed395caa94497b13c01 /src/slic3r/GUI/Preferences.cpp
parent28f1a6f2561d915443e20b7e8e911d8821be4c69 (diff)
Mac: Implement Retina for the 3D scene, fix #97
Diffstat (limited to 'src/slic3r/GUI/Preferences.cpp')
-rw-r--r--src/slic3r/GUI/Preferences.cpp16
1 files changed, 14 insertions, 2 deletions
diff --git a/src/slic3r/GUI/Preferences.cpp b/src/slic3r/GUI/Preferences.cpp
index 5f5da8bd4..2aa5ecadd 100644
--- a/src/slic3r/GUI/Preferences.cpp
+++ b/src/slic3r/GUI/Preferences.cpp
@@ -87,6 +87,7 @@ void PreferencesDialog::build()
option = Option (def,"show_incompatible_presets");
m_optgroup->append_single_option_line(option);
+ // TODO: remove?
def.label = L("Use legacy OpenGL 1.1 rendering");
def.type = coBool;
def.tooltip = L("If you have rendering issues caused by a buggy OpenGL 2.0 driver, "
@@ -96,6 +97,16 @@ void PreferencesDialog::build()
option = Option (def,"use_legacy_opengl");
m_optgroup->append_single_option_line(option);
+#if __APPLE__
+ def.label = L("Use Retina resolution for the 3D scene");
+ def.type = coBool;
+ def.tooltip = L("If enabled, the 3D scene will be rendered in Retina resolution. "
+ "If you are experiencing 3D performance problems, disabling this option may help.");
+ def.default_value = new ConfigOptionBool{ app_config->get("use_retina_opengl") == "1" };
+ option = Option (def, "use_retina_opengl");
+ m_optgroup->append_single_option_line(option);
+#endif
+
auto sizer = new wxBoxSizer(wxVERTICAL);
sizer->Add(m_optgroup->sizer, 0, wxEXPAND | wxBOTTOM | wxLEFT | wxRIGHT, 10);
@@ -110,8 +121,9 @@ void PreferencesDialog::build()
void PreferencesDialog::accept()
{
- if (m_values.find("no_defaults") != m_values.end()||
- m_values.find("use_legacy_opengl")!= m_values.end()) {
+ if (m_values.find("no_defaults") != m_values.end() ||
+ m_values.find("use_legacy_opengl") != m_values.end() ||
+ m_values.find("use_retina_opengl") != m_values.end()) {
warning_catcher(this, _(L("You need to restart Slic3r to make the changes effective.")));
}