Shrink width of timecode entries on macOS (#2041).
authorCarl Hetherington <cth@carlh.net>
Sun, 6 Jun 2021 09:44:19 +0000 (11:44 +0200)
committerCarl Hetherington <cth@carlh.net>
Sun, 6 Jun 2021 09:44:19 +0000 (11:44 +0200)
src/wx/timecode.cc

index 70aa116..0e798bb 100644 (file)
@@ -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;
 }