Merge branch 'master' of ssh://git.carlh.net/home/carl/git/dcpomatic
authorCarl Hetherington <cth@carlh.net>
Wed, 22 Jun 2016 00:19:33 +0000 (01:19 +0100)
committerCarl Hetherington <cth@carlh.net>
Wed, 22 Jun 2016 00:19:33 +0000 (01:19 +0100)
ChangeLog
src/lib/audio_buffers.cc
src/lib/dcp_decoder.cc
src/wx/dir_picker_ctrl.cc
src/wx/dir_picker_ctrl.h
src/wx/new_film_dialog.cc

index 70670d373717bc47edfe6323c4149b7942c06368..b78aec3582c39f14eb1f67425319e5cbda516571 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2016-06-21  Carl Hetherington  <cth@carlh.net>
+
+       * Make new file dialogue bigger on some platforms (#902).
+
 2016-06-20  Carl Hetherington  <cth@carlh.net>
 
        * Updated nl_NL translation from Rob van Nieuwkerk.
index 2ab8e187e3a32f9c3566a669990899cb2caf5649..546abbb54a767a9a3a4b2d039ada7f0634792d35 100644 (file)
@@ -279,9 +279,10 @@ AudioBuffers::accumulate_frames (AudioBuffers const * from, int32_t read_offset,
        DCPOMATIC_ASSERT (read_offset >= 0);
        DCPOMATIC_ASSERT (write_offset >= 0);
 
+       float** from_data = from->data ();
        for (int i = 0; i < _channels; ++i) {
                for (int j = 0; j < frames; ++j) {
-                       _data[i][j + write_offset] += from->data()[i][j + read_offset];
+                       _data[i][j + write_offset] += from_data[i][j + read_offset];
                }
        }
 }
index e7e88d3191e9bf2a3ecfaa0f0f8108b1cf7e4613..c17b21a7fd9045dffe7af9157816a61a4b301ea5 100644 (file)
@@ -116,9 +116,10 @@ DCPDecoder::pass (PassReason reason, bool)
                int const channels = _dcp_content->audio->stream()->channels ();
                int const frames = sf->size() / (3 * channels);
                shared_ptr<AudioBuffers> data (new AudioBuffers (channels, frames));
+               float** data_data = data->data();
                for (int i = 0; i < frames; ++i) {
                        for (int j = 0; j < channels; ++j) {
-                               data->data()[j][i] = static_cast<int> ((from[0] << 8) | (from[1] << 16) | (from[2] << 24)) / static_cast<float> (INT_MAX - 256);
+                               data_data[j][i] = static_cast<int> ((from[0] << 8) | (from[1] << 16) | (from[2] << 24)) / static_cast<float> (INT_MAX - 256);
                                from += 3;
                        }
                }
index aafc0e381da42a3ef53ef293198b74a8e7ea214a..368ff863d8f7eff10a738b19f4b6567cf1581142 100644 (file)
@@ -28,8 +28,8 @@
 using namespace std;
 using namespace boost;
 
-DirPickerCtrl::DirPickerCtrl (wxWindow* parent)
-       : wxPanel (parent)
+DirPickerCtrl::DirPickerCtrl (wxWindow* parent, wxSize size)
+       : wxPanel (parent, wxID_ANY, wxDefaultPosition, size)
 {
        _sizer = new wxBoxSizer (wxHORIZONTAL);
 
index 2ab2a5714b8f42d7ae96aa5625421abd45fc5914..383362f570d97095e296d6559af3e2d23da44b36 100644 (file)
@@ -1,5 +1,5 @@
 /*
-    Copyright (C) 2012 Carl Hetherington <cth@carlh.net>
+    Copyright (C) 2012-2016 Carl Hetherington <cth@carlh.net>
 
     This file is part of DCP-o-matic.
 
@@ -23,7 +23,7 @@
 class DirPickerCtrl : public wxPanel
 {
 public:
-       DirPickerCtrl (wxWindow *);
+       DirPickerCtrl (wxWindow *, wxSize size = wxDefaultSize);
 
        wxString GetPath () const;
        void SetPath (wxString);
@@ -36,4 +36,3 @@ private:
        wxString _path;
        wxSizer* _sizer;
 };
-
index 04b9e10578889d8f43b59f50f1d178dfd193d9ce..df5890f2c8a2636e1bca97a628f8ec6ac6145c50 100644 (file)
@@ -41,7 +41,7 @@ NewFilmDialog::NewFilmDialog (wxWindow* parent)
        add (_("Create in folder"), true);
 
 #ifdef DCPOMATIC_USE_OWN_PICKER
-       _folder = new DirPickerCtrl (this);
+       _folder = new DirPickerCtrl (this, wxSize (300, -1));
 #else
        _folder = new wxDirPickerCtrl (this, wxID_ANY, wxEmptyString, wxDirSelectorPromptStr, wxDefaultPosition, wxSize (300, -1));
 #endif