Fiddle with ccap window default size. v2.13.41
authorCarl Hetherington <cth@carlh.net>
Sun, 5 Aug 2018 00:32:37 +0000 (01:32 +0100)
committerCarl Hetherington <cth@carlh.net>
Sun, 5 Aug 2018 00:32:37 +0000 (01:32 +0100)
src/wx/closed_captions_dialog.cc

index c07961c..3f444f9 100644 (file)
@@ -33,7 +33,8 @@ using boost::weak_ptr;
 using boost::optional;
 
 ClosedCaptionsDialog::ClosedCaptionsDialog (wxWindow* parent)
-       : wxDialog (parent, wxID_ANY, _("Closed captions"), wxDefaultPosition, wxDefaultSize,
+        /* XXX: empirical and probably unhelpful default size here; needs to be related to font metrics */
+       : wxDialog (parent, wxID_ANY, _("Closed captions"), wxDefaultPosition, wxSize(640, (640 / 10) + 64),
 #ifdef DCPOMATIC_OSX
                /* I can't get wxFRAME_FLOAT_ON_PARENT to work on OS X, and although wxSTAY_ON_TOP keeps
                   the window above all others (and not just our own) it's better than nothing for now.