FIX: the DPI issue

jira: [STUDIO-9238]
Change-Id: I8ab364402358b8b21e6768ecdd0da9cfe6541777
(cherry picked from commit 6dda5f3e523e79485cd0f10c333849fbaa3e0851)
This commit is contained in:
xin.zhang
2025-03-07 09:05:41 +08:00
committed by Noisyfox
parent 849604e62a
commit 928e3f4fcf
5 changed files with 71 additions and 10 deletions

View File

@@ -3131,7 +3131,7 @@ void StatusPanel::update_misc_ctrl(MachineObject *obj)
if (m_fan_panel->IsShown()) {
m_fan_panel->Hide();
}
if (m_fan_control_popup && m_fan_control_popup->Show())
if (m_fan_control_popup && m_fan_control_popup->IsShown())
m_fan_control_popup->Hide();
}
@@ -5256,6 +5256,10 @@ void StatusPanel::msw_rescale()
m_switch_fan->SetImages(m_bitmap_fan_on, m_bitmap_fan_off);
m_switch_fan->Rescale();
if (m_fan_control_popup)
{
m_fan_control_popup->msw_rescale();
}
//m_switch_fan->SetImages(m_bitmap_fan_on, m_bitmap_fan_off);
//m_switch_fan->Rescale();