projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
04d1b65
)
Shrink width of timecode entries on macOS (#2041).
author
Carl Hetherington
<cth@carlh.net>
Sun, 6 Jun 2021 09:44:19 +0000
(11:44 +0200)
committer
Carl Hetherington
<cth@carlh.net>
Sun, 6 Jun 2021 09:44:19 +0000
(11:44 +0200)
src/wx/timecode.cc
patch
|
blob
|
history
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;
}