From 955439b3baf8ed03fa541e11325ec98a2083e061 Mon Sep 17 00:00:00 2001 From: Enrico Turri Date: Wed, 20 Nov 2019 10:57:56 +0100 Subject: [PATCH] Fixed build on Mac --- src/slic3r/GUI/GLCanvas3D.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/slic3r/GUI/GLCanvas3D.cpp b/src/slic3r/GUI/GLCanvas3D.cpp index 4721901f41..818c2ae630 100644 --- a/src/slic3r/GUI/GLCanvas3D.cpp +++ b/src/slic3r/GUI/GLCanvas3D.cpp @@ -230,14 +230,8 @@ void GLCanvas3D::LayersEditing::render_overlay(const GLCanvas3D& canvas) const float canvas_w = (float)cnv_size.get_width(); float canvas_h = (float)cnv_size.get_height(); -#if ENABLE_RETINA_GL - const float scale_gl = m_retina_helper->get_scale_factor(); -#else - const float scale_gl = wxGetApp().mainframe->scale_factor(); -#endif // ENABLE_RETINA_GL - ImGuiWrapper& imgui = *wxGetApp().imgui(); - imgui.set_next_window_pos(canvas_w - scale_gl * THICKNESS_BAR_WIDTH, canvas_h, ImGuiCond_Always, 1.0f, 1.0f); + imgui.set_next_window_pos(canvas_w - imgui.get_style_scaling() * THICKNESS_BAR_WIDTH, canvas_h, ImGuiCond_Always, 1.0f, 1.0f); imgui.set_next_window_bg_alpha(0.5f); ImGui::PushStyleVar(ImGuiStyleVar_WindowRounding, 0.0f);