diff options
| author | Carl Hetherington <cth@carlh.net> | 2018-09-19 01:12:35 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2018-09-19 01:12:35 +0100 |
| commit | 29624165cfd5e68754e8035ef28a61d4c18c77ce (patch) | |
| tree | 4e99ea7d9dbc1178efa84a1f2cc76c0323b0394e /src | |
| parent | c4b06e3857b3ba314ebd2233cc45a42ef00e9604 (diff) | |
Fix background colouring.
Diffstat (limited to 'src')
| -rw-r--r-- | src/wx/film_viewer.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wx/film_viewer.cc b/src/wx/film_viewer.cc index 86805f146..a27c0053d 100644 --- a/src/wx/film_viewer.cc +++ b/src/wx/film_viewer.cc @@ -91,7 +91,7 @@ FilmViewer::FilmViewer (wxWindow* p) #endif _panel->SetBackgroundStyle (wxBG_STYLE_PAINT); - _panel->SetBackgroundColour (*wxBLACK); + _panel->SetBackgroundColour (wxNullColour); _panel->Bind (wxEVT_PAINT, boost::bind (&FilmViewer::paint_panel, this)); _panel->Bind (wxEVT_SIZE, boost::bind (&FilmViewer::panel_sized, this, _1)); @@ -333,7 +333,7 @@ FilmViewer::paint_panel () dc.SetPen (p); dc.SetBrush (b); int const gap = (_panel_size.height - _out_size.height) / 2; - dc.DrawRectangle (0, gap, _panel_size.width, gap); + dc.DrawRectangle (0, 0, _panel_size.width, gap); dc.DrawRectangle (0, gap + _out_size.height, _panel_size.width, gap); } |
