diff options
| author | Carl Hetherington <cth@carlh.net> | 2018-02-10 22:43:09 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2018-02-10 23:00:15 +0000 |
| commit | 0af38a850f967fd1848850a18432abc6314e9cc4 (patch) | |
| tree | 0796f547efd4174b5f8fdb1c9b0bf0fa88c9be49 /src/tools | |
| parent | 17f9254f68fabfe5d8136d256b69a65fc58724ee (diff) | |
Save decoding resolution reduction between launches (#1195).
Diffstat (limited to 'src/tools')
| -rw-r--r-- | src/tools/dcpomatic_player.cc | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/tools/dcpomatic_player.cc b/src/tools/dcpomatic_player.cc index 0f77e3bc3..bbfdc4ae4 100644 --- a/src/tools/dcpomatic_player.cc +++ b/src/tools/dcpomatic_player.cc @@ -149,6 +149,7 @@ public: { _viewer->set_dcp_decode_reduction (reduction); _info->triggered_update (); + Config::instance()->set_decode_reduction (reduction); } void load_dcp (boost::filesystem::path dir) @@ -230,10 +231,11 @@ private: #endif wxMenu* view = new wxMenu; - view->AppendRadioItem (ID_view_scale_appropriate, _("Set decode resolution to match display")); - view->AppendRadioItem (ID_view_scale_full, _("Decode at full resolution")); - view->AppendRadioItem (ID_view_scale_half, _("Decode at half resolution")); - view->AppendRadioItem (ID_view_scale_quarter, _("Decode at quarter resolution")); + optional<int> c = Config::instance()->decode_reduction(); + view->AppendRadioItem(ID_view_scale_appropriate, _("Set decode resolution to match display"))->Check(!static_cast<bool>(c)); + view->AppendRadioItem(ID_view_scale_full, _("Decode at full resolution"))->Check(c && c.get() == 0); + view->AppendRadioItem(ID_view_scale_half, _("Decode at half resolution"))->Check(c && c.get() == 1); + view->AppendRadioItem(ID_view_scale_quarter, _("Decode at quarter resolution"))->Check(c && c.get() == 2); wxMenu* tools = new wxMenu; tools->Append (ID_tools_check_for_updates, _("Check for updates")); |
