From 1905ef29b005f501c91c0537b6a6e723bf87d1ac Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sun, 6 Jun 2021 11:44:19 +0200 Subject: [PATCH] Shrink width of timecode entries on macOS (#2041). --- src/wx/timecode.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/wx/timecode.cc b/src/wx/timecode.cc index 70aa116dd..0e798bb3a 100644 --- a/src/wx/timecode.cc +++ b/src/wx/timecode.cc @@ -131,7 +131,11 @@ wxSize TimecodeBase::size (wxWindow* parent) { wxClientDC dc (parent); +#ifdef DCPOMATIC_OSX + auto size = dc.GetTextExtent(wxT("999")); +#else auto size = dc.GetTextExtent(wxT("99999")); +#endif size.SetHeight (-1); return size; } -- 2.30.2