ENH:set the fan gear at 10%

Change-Id: I4ccb62c0e047ccaec3b6a7ca02e03fd2ce320348
This commit is contained in:
tao wang 2022-12-14 17:34:43 +08:00 committed by Lane.Wei
parent 5dcf49e0f4
commit 64a635608c
3 changed files with 64 additions and 23 deletions

View file

@ -303,9 +303,9 @@ void FanOperate::doRender(wxDC& dc)
//txt
dc.SetFont(::Label::Body_12);
dc.SetTextForeground(StateColor::darkModeColorFor(wxColour(0x898989)));
wxString text = wxString::Format("%d%%", m_current_speeds * 10);
wxString text = wxString::Format("%d%%", 10);
wxSize text_size = dc.GetTextExtent(text);
dc.DrawText(text, wxPoint(left_fir + (left_fir- text_size.x) / 2, (size.y- text_size.y) / 2 + 2));
dc.DrawText(text, wxPoint(left_fir + (left_fir- text_size.x) / 2, (size.y- text_size.y) / 2));
}
void FanOperate::msw_rescale() {