mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-09-06 00:36:49 +00:00
Remove macOS text position fudge factors (no longer needed with wx 3.3)
This commit is contained in:
@@ -278,13 +278,11 @@ void SideButton::dorender(wxDC& dc, wxDC& text_dc)
|
||||
auto text = GetLabel();
|
||||
if (!text.IsEmpty()) {
|
||||
pt.y += (rcContent.height - textSize.y) / 2;
|
||||
#ifdef __APPLE__
|
||||
pt.y -= FromDIP(2);
|
||||
#endif
|
||||
text_dc.SetFont(GetFont());
|
||||
text_dc.SetTextForeground(text_color.colorForStates(states));
|
||||
text_dc.DrawText(text, pt);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
void SideButton::messureSize()
|
||||
|
||||
Reference in New Issue
Block a user