FIX: update some scale while DPI changed
jira: [STUDIO-10067] Change-Id: Icb8480d01bdf20a17c699746677d54fc8c8680a6
This commit is contained in:
parent
ca85009945
commit
677ec9e364
|
@ -289,7 +289,7 @@ public:
|
|||
void doRender(wxDC& dc);
|
||||
|
||||
public:
|
||||
int current_humidity_level;
|
||||
int current_humidity_level = 0;
|
||||
|
||||
ScalableBitmap close_img;
|
||||
wxStaticBitmap* curr_humidity_img;
|
||||
|
|
|
@ -4940,6 +4940,15 @@ void StatusPanel::msw_rescale()
|
|||
m_tempCtrl_chamber->SetMinSize(size);
|
||||
m_tempCtrl_chamber->Rescale();
|
||||
|
||||
for(int i = 0; i < m_extruder_book->GetPageCount(); i++)
|
||||
{
|
||||
ExtruderImage* ext_img = dynamic_cast<ExtruderImage*> (m_extruder_book->GetPage(i));
|
||||
if (ext_img)
|
||||
{
|
||||
ext_img->msw_rescale();
|
||||
}
|
||||
}
|
||||
|
||||
m_bitmap_speed.msw_rescale();
|
||||
m_bitmap_speed_active.msw_rescale();
|
||||
|
||||
|
|
|
@ -2761,9 +2761,9 @@ void AMSHumidity::doRender(wxDC& dc)
|
|||
dc.DrawText(hum_percentage, pot);
|
||||
|
||||
pot.x += (tsize.x + FromDIP(5));
|
||||
pot.y += (tsize.y / 2 - FromDIP(4));
|
||||
tsize = dc.GetMultiLineTextExtent(_L("%"));
|
||||
dc.SetFont(Label::Body_12);
|
||||
tsize = dc.GetMultiLineTextExtent(_L("%"));
|
||||
pot.y += (tsize.y / 2 - FromDIP(4));
|
||||
dc.DrawText(_L("%"), pot);
|
||||
|
||||
//vertical line
|
||||
|
@ -2776,7 +2776,7 @@ void AMSHumidity::doRender(wxDC& dc)
|
|||
//sun image
|
||||
/*pot.x = FromDIP(size.x * 0.69);
|
||||
pot.y = FromDIP((size.y - ams_sun_img.GetBmpHeight()) / 2);*/
|
||||
pot.x = pot.x + FromDIP(4);
|
||||
pot.x = pot.x + FromDIP(ams_sun_img.GetBmpWidth() / 2);
|
||||
pot.y = FromDIP((size.y - ams_sun_img.GetBmpHeight()) / 2);
|
||||
dc.SetPen(wxPen(*wxTRANSPARENT_PEN));
|
||||
dc.DrawBitmap(ams_sun_img.bmp(), pot);
|
||||
|
|
Loading…
Reference in New Issue