From 19b52da2603a20562dcb147e7a94a750b055d4e0 Mon Sep 17 00:00:00 2001 From: YuSanka Date: Fri, 18 Dec 2020 08:40:17 +0100 Subject: [PATCH] Fix of #5501 - 3D Editor / Layer View widget DPI regression (Linux GTK3 specific) --- src/slic3r/GUI/GLCanvas3D.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/slic3r/GUI/GLCanvas3D.cpp b/src/slic3r/GUI/GLCanvas3D.cpp index 14892d678..481a2d305 100644 --- a/src/slic3r/GUI/GLCanvas3D.cpp +++ b/src/slic3r/GUI/GLCanvas3D.cpp @@ -5328,7 +5328,7 @@ void GLCanvas3D::_render_view_toolbar() const { GLToolbar& view_toolbar = wxGetApp().plater()->get_view_toolbar(); -#if ENABLE_RETINA_GL +#if __APPLE__ // m_view_toolbar.set_scale(m_retina_helper->get_scale_factor()); const float scale = m_retina_helper->get_scale_factor() * wxGetApp().toolbar_icon_scale(); view_toolbar.set_scale(scale); //! #ys_FIXME_experiment @@ -5337,7 +5337,7 @@ void GLCanvas3D::_render_view_toolbar() const // m_view_toolbar.set_scale(wxGetApp().em_unit()*0.1f); const float size = int(GLGizmosManager::Default_Icons_Size * wxGetApp().toolbar_icon_scale()); view_toolbar.set_icons_size(size); //! #ys_FIXME_experiment -#endif // ENABLE_RETINA_GL +#endif // __APPLE__ Size cnv_size = get_canvas_size(); float inv_zoom = (float)wxGetApp().plater()->get_camera().get_inv_zoom();