projects
/
dcpomatic.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Shrink width of timecode entries on macOS (#2041).
[dcpomatic.git]
/
src
/
wx
/
timecode.cc
diff --git
a/src/wx/timecode.cc
b/src/wx/timecode.cc
index 70aa116ddd2b4c858117943ca4c70ca2fd3cde0e..0e798bb3aee2ae7815e65d806936984245b1d45b 100644
(file)
--- 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;
}