| 52 | } |
| 53 | |
| 54 | wxRect GetPanelRect(const wxPanelWrapper& panel) |
| 55 | { |
| 56 | #ifndef __WXMAC__ |
| 57 | return panel.GetClientRect(); |
| 58 | #else |
| 59 | auto rect = panel.GetClientRect(); |
| 60 | rect.SetX(rect.GetX() + 1); |
| 61 | rect.SetY(rect.GetY() + 1); |
| 62 | rect.SetWidth(rect.GetWidth() - 1); |
| 63 | rect.SetHeight(rect.GetHeight() - 1); |
| 64 | return rect; |
| 65 | #endif |
| 66 | } |
| 67 | |
| 68 | } // namespace DynamicRangeProcessorPanel |