From d61b2a7b73260ca84f579b91d70c103037bcf637 Mon Sep 17 00:00:00 2001 From: "xin.zhang" Date: Wed, 12 Mar 2025 10:06:07 +0800 Subject: [PATCH] FIX: the fan speed control in mac OS jira: [STUDIO-9566] Change-Id: I781ee149a2b184ee8d559dbb494798386e67e059 (cherry picked from commit 77dc987ad58534b033b025b9d47bb806718667c3) --- src/slic3r/GUI/Widgets/FanControl.cpp | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/src/slic3r/GUI/Widgets/FanControl.cpp b/src/slic3r/GUI/Widgets/FanControl.cpp index 57fcc281f1..7601f0c678 100644 --- a/src/slic3r/GUI/Widgets/FanControl.cpp +++ b/src/slic3r/GUI/Widgets/FanControl.cpp @@ -189,16 +189,7 @@ void FanOperate::create(wxWindow *parent, wxWindowID id, const wxPoint &pos, con void FanOperate::on_left_down(wxMouseEvent& event) { - - auto mouse_pos = wxPoint(0,0); - -#ifdef __APPLE__ - mouse_pos= GetParent()->GetParent()->ClientToScreen(event.GetPosition()); -#else - mouse_pos = ClientToScreen(event.GetPosition()); -#endif // __APPLE__ - - + auto mouse_pos = ClientToScreen(event.GetPosition()); auto win_pos = ClientToScreen(wxPoint(0, 0)); auto decrease_fir = FromDIP(24);