FIX:hide the rpm for fan speed

Change-Id: I4ba972ee358cbb833a704b927260325940ca4d53
This commit is contained in:
tao wang 2022-12-14 09:43:42 +08:00 committed by Lane.Wei
parent a6254c44fd
commit 5dcf49e0f4

View file

@ -155,13 +155,13 @@ void Fan::doRender(wxDC& dc)
//fan val //fan val
dc.SetTextForeground(DRAW_TEXT_COLOUR); dc.SetTextForeground(DRAW_TEXT_COLOUR);
dc.SetFont(::Label::Head_14); dc.SetFont(::Label::Head_13);
auto speeds = wxString::Format("%d%%", m_current_speeds * 10); auto speeds = wxString::Format("%d%%", m_current_speeds * 10);
dc.DrawText(speeds, (size.x - dc.GetTextExtent(speeds).x) / 2, size.y - dc.GetTextExtent(speeds).y - FromDIP(10)); dc.DrawText(speeds, (size.x - dc.GetTextExtent(speeds).x) / 2 + FromDIP(2), size.y - dc.GetTextExtent(speeds).y - FromDIP(5));
//rpm //rpm
dc.SetFont(::Label::Body_13); //dc.SetFont(::Label::Body_13);
dc.DrawText(rpm, (size.x - dc.GetTextExtent(rpm).x) / 2, size.y - dc.GetTextExtent(rpm).y); //dc.DrawText(rpm, (size.x - dc.GetTextExtent(rpm).x) / 2, size.y - dc.GetTextExtent(rpm).y);
} }
void Fan::msw_rescale() { void Fan::msw_rescale() {