mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-17 10:32:20 +00:00
FIX: update some scale while DPI changed
jira: [STUDIO-10067] Change-Id: Icb8480d01bdf20a17c699746677d54fc8c8680a6 (cherry picked from commit 677ec9e364a47b944b3ebee5519aea4c35439af1)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user