FIX: the fan speed control in mac OS

jira: [STUDIO-9566]
Change-Id: I781ee149a2b184ee8d559dbb494798386e67e059
This commit is contained in:
xin.zhang 2025-03-12 10:06:07 +08:00 committed by lane.wei
parent 19697b2dcd
commit 77dc987ad5

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