+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.
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];
}
}
}
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;
}
}
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);
/*
- 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.
class DirPickerCtrl : public wxPanel
{
public:
- DirPickerCtrl (wxWindow *);
+ DirPickerCtrl (wxWindow *, wxSize size = wxDefaultSize);
wxString GetPath () const;
void SetPath (wxString);
wxString _path;
wxSizer* _sizer;
};
-
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