From: Carl Hetherington Date: Sun, 6 Jun 2021 09:44:19 +0000 (+0200) Subject: Shrink width of timecode entries on macOS (#2041). X-Git-Tag: v2.15.155~31 X-Git-Url: https://main.carlh.net/gitweb/?p=dcpomatic.git;a=commitdiff_plain;h=1905ef29b005f501c91c0537b6a6e723bf87d1ac Shrink width of timecode entries on macOS (#2041). --- 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; }