mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-20 11:53:48 +00:00
Refine badge rendering
This commit is contained in:
@@ -21,6 +21,6 @@ void StaticGroup::DrawBorderAndLabel(wxDC& dc)
|
|||||||
LabeledStaticBox::DrawBorderAndLabel(dc);
|
LabeledStaticBox::DrawBorderAndLabel(dc);
|
||||||
if (badge.bmp().IsOk()) {
|
if (badge.bmp().IsOk()) {
|
||||||
auto s = badge.bmp().GetScaledSize();
|
auto s = badge.bmp().GetScaledSize();
|
||||||
dc.DrawBitmap(badge.bmp(), GetSize().x - s.x, 8);
|
dc.DrawBitmap(badge.bmp(), GetSize().x - s.x, std::max(0, m_pos.y) + m_label_height / 2);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user