summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2013-07-26 10:12:33 +0100
committerCarl Hetherington <cth@carlh.net>2013-07-26 10:12:33 +0100
commit125d9060581aaca8de05b36a09cb43e4398bd243 (patch)
tree68c88882c38d71ee003bfa1f1b4fb7e778543d7b /src
parent264a268f7c1244b47d9fa54ad342d80b0f98e16d (diff)
Try to fix dark-grey borders on Windows.
Diffstat (limited to 'src')
-rw-r--r--src/tools/dcpomatic.cc14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/tools/dcpomatic.cc b/src/tools/dcpomatic.cc
index 9cfd5e4b2..e0ac0e255 100644
--- a/src/tools/dcpomatic.cc
+++ b/src/tools/dcpomatic.cc
@@ -222,12 +222,18 @@ public:
Connect (ID_jobs_send_dcp_to_tms, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler (Frame::jobs_send_dcp_to_tms));
Connect (ID_jobs_show_dcp, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler (Frame::jobs_show_dcp));
Connect (wxID_ABOUT, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler (Frame::help_about));
-
Connect (wxID_ANY, wxEVT_MENU_OPEN, wxMenuEventHandler (Frame::menu_opened));
- film_editor = new FilmEditor (film, this);
- film_viewer = new FilmViewer (film, this);
- JobManagerView* job_manager_view = new JobManagerView (this, static_cast<JobManagerView::Buttons> (0));
+ /* Use a panel as the only child of the Frame so that we avoid
+ the dark-grey background on Windows.
+ */
+ wxPanel* overall_panel = new wxPanel (this, wxID_ANY);
+ wxBoxSizer* overall_sizer = new wxBoxSizer (wxEXPAND);
+ overall_panel->SetSizer (overall_sizer);
+
+ film_editor = new FilmEditor (film, overall_panel);
+ film_viewer = new FilmViewer (film, overall_panel);
+ JobManagerView* job_manager_view = new JobManagerView (overall_panel, static_cast<JobManagerView::Buttons> (0));
wxBoxSizer* right_sizer = new wxBoxSizer (wxVERTICAL);
right_sizer->Add (film_viewer, 2, wxEXPAND | wxALL, 6);