diff options
| author | Carl Hetherington <cth@carlh.net> | 2021-06-06 11:44:19 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2021-06-06 11:44:19 +0200 |
| commit | 1905ef29b005f501c91c0537b6a6e723bf87d1ac (patch) | |
| tree | 80ba3ce0e4185a8fe895887ae76975be2127404d /src/wx/timecode.cc | |
| parent | 04d1b65e44680fb7d715bdc37a0ed8c8d0e214d2 (diff) | |
Shrink width of timecode entries on macOS (#2041).
Diffstat (limited to 'src/wx/timecode.cc')
| -rw-r--r-- | src/wx/timecode.cc | 4 |
1 files changed, 4 insertions, 0 deletions
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; } |
