mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-17 02:22:17 +00:00
FIX: the fan speed control in mac OS
jira: [STUDIO-9566] Change-Id: I781ee149a2b184ee8d559dbb494798386e67e059 (cherry picked from commit 77dc987ad58534b033b025b9d47bb806718667c3)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user