summaryrefslogtreecommitdiff
path: root/src/wx/custom_scale_dialog.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2021-05-07 22:14:33 +0200
committerCarl Hetherington <cth@carlh.net>2021-05-07 22:14:33 +0200
commit65bd479a3008fb269925e1ce92e547c863ede73d (patch)
tree1c45afc5d88754e832ed42751ec2eda37b96e091 /src/wx/custom_scale_dialog.cc
parentf3e52bd763513190de60e7f6b68c50b34ab80fee (diff)
Add DCPOMATIC_SPIN_CTRL_WIDTH and use it in a few places.
Diffstat (limited to 'src/wx/custom_scale_dialog.cc')
-rw-r--r--src/wx/custom_scale_dialog.cc10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/wx/custom_scale_dialog.cc b/src/wx/custom_scale_dialog.cc
index 8a5f9e128..48f476a9f 100644
--- a/src/wx/custom_scale_dialog.cc
+++ b/src/wx/custom_scale_dialog.cc
@@ -49,19 +49,13 @@ CustomScaleDialog::CustomScaleDialog (wxWindow* parent, dcp::Size initial, dcp::
_size_from_ratio = new wxStaticText (this, wxID_ANY, wxT(""));
add (_size_from_ratio, 1, wxALIGN_CENTER_VERTICAL);
-#ifdef __WXGTK3__
- int const spin_width = 118;
-#else
- int const spin_width = 64;
-#endif
-
_size = new wxRadioButton (this, wxID_ANY, _("Set size"));
add (_size);
s = new wxBoxSizer (wxHORIZONTAL);
- _width = new wxSpinCtrl (this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize(spin_width, -1), wxSP_ARROW_KEYS, 1, film_container.width);
+ _width = new wxSpinCtrl (this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize(DCPOMATIC_SPIN_CTRL_WIDTH, -1), wxSP_ARROW_KEYS, 1, film_container.width);
s->Add (_width, 1, wxRIGHT, 4);
add_label_to_sizer (s, this, wxT("x"), false, 0, wxLEFT | wxRIGHT | wxALIGN_CENTER_VERTICAL);
- _height = new wxSpinCtrl (this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize(spin_width, -1), wxSP_ARROW_KEYS, 1, film_container.height);
+ _height = new wxSpinCtrl (this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize(DCPOMATIC_SPIN_CTRL_WIDTH, -1), wxSP_ARROW_KEYS, 1, film_container.height);
s->Add (_height, 1, wxRIGHT, 4);
add (s);
_ratio_from_size = new wxStaticText (this, wxID_ANY, wxT(""));