mirror of
https://git.mirrors.martin98.com/https://github.com/bambulab/BambuStudio.git
synced 2025-08-08 17:29:03 +08:00
FIX: the fan speed control in mac OS
jira: [STUDIO-9566] Change-Id: I781ee149a2b184ee8d559dbb494798386e67e059
This commit is contained in:
parent
19697b2dcd
commit
77dc987ad5
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user