FIX: try fix the image shown problem

jira: [STUDIO-9627]
Change-Id: I78e83c5072c8be46df7300703072554dc6e1fce9
This commit is contained in:
xin.zhang 2025-01-08 21:59:22 +08:00 committed by lane.wei
parent 74f189e807
commit 6b9d9b5ed7
1 changed files with 2 additions and 2 deletions

View File

@ -913,7 +913,7 @@ void BindMachineDialog::on_show(wxShowEvent &event)
if (event.IsShown()) {
auto img = m_machine_info->get_printer_thumbnail_img_str();
if (wxGetApp().dark_mode()) { img += "_dark"; }
auto bitmap = create_scaled_bitmap(img, this, FromDIP(100));
auto bitmap = create_scaled_bitmap(img, this, FromDIP(80));
m_printer_img->SetBitmap(bitmap);
m_printer_img->Refresh();
m_printer_img->Show();
@ -1133,7 +1133,7 @@ void UnBindMachineDialog::on_show(wxShowEvent &event)
if (event.IsShown()) {
auto img = m_machine_info->get_printer_thumbnail_img_str();
if (wxGetApp().dark_mode()) { img += "_dark"; }
auto bitmap = create_scaled_bitmap(img, this, FromDIP(100));
auto bitmap = create_scaled_bitmap(img, this, FromDIP(80));
m_printer_img->SetBitmap(bitmap);
m_printer_img->Refresh();
m_printer_img->Show();