diff options
| author | Carl Hetherington <cth@carlh.net> | 2020-01-08 22:22:01 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2020-01-08 22:22:01 +0100 |
| commit | 579d18cb7770efe2da03afaf6a33faaf624119e3 (patch) | |
| tree | cc303d8c74e64fff8eb5a663941cac4455154ae9 /src/wx/standard_controls.cc | |
| parent | dde431cafbb20ed3356ad5592be56af1d4458f46 (diff) | |
| parent | 23590dc430e4ef2351209e30a26ba04fecca2872 (diff) | |
Merge a set of changes which run the OpenGL video updates in a separatev2.15.40
thread, hopefully making things more elegant and robust.
Diffstat (limited to 'src/wx/standard_controls.cc')
| -rw-r--r-- | src/wx/standard_controls.cc | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/wx/standard_controls.cc b/src/wx/standard_controls.cc index 956f82c96..e9a31c86b 100644 --- a/src/wx/standard_controls.cc +++ b/src/wx/standard_controls.cc @@ -74,3 +74,19 @@ StandardControls::setup_sensitivity () bool const active_job = _active_job && *_active_job != "examine_content"; _play_button->Enable (_film && !_film->content().empty() && !active_job); } + +#ifdef DCPOMATIC_PLAYER_STRESS_TEST +void +StandardControls::play () +{ + _play_button->SetValue (true); + play_clicked (); +} + +void +StandardControls::stop () +{ + _play_button->SetValue (false); + play_clicked (); +} +#endif |
