FIX: the fan speed control in mac OS

jira: [STUDIO-9566]
Change-Id: I781ee149a2b184ee8d559dbb494798386e67e059
(cherry picked from commit 77dc987ad58534b033b025b9d47bb806718667c3)
This commit is contained in:
xin.zhang
2025-03-12 10:06:07 +08:00
committed by Noisyfox
parent 4fc4916ed0
commit d61b2a7b73

View File

@@ -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);