mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-09-26 10:21:00 +00:00
Remove macOS text position fudge factors (no longer needed with wx 3.3)
This commit is contained in:
@@ -364,14 +364,6 @@ void Button::render(wxDC& dc)
|
||||
dc.SetBrush(*wxLIGHT_GREY);
|
||||
dc.SetPen(wxPen(*wxLIGHT_GREY));
|
||||
dc.DrawRectangle(pt, textSize.GetSize());
|
||||
#endif
|
||||
#ifdef __WXOSX__
|
||||
pt.y -= this->textSize.x / 2;
|
||||
#endif
|
||||
#ifdef __APPLE__
|
||||
if (Slic3r::is_mac_version_15()) {
|
||||
pt.y -= FromDIP(1);
|
||||
}
|
||||
#endif
|
||||
dc.DrawText(text, pt);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user