Fix background colouring.
authorCarl Hetherington <cth@carlh.net>
Wed, 19 Sep 2018 00:12:35 +0000 (01:12 +0100)
committerCarl Hetherington <cth@carlh.net>
Wed, 19 Sep 2018 00:12:35 +0000 (01:12 +0100)
src/wx/film_viewer.cc

index 86805f146f1d666fbfe576434d99fdeb842fa544..a27c0053d8ca6204dfa27c7a4adde1db7b64504c 100644 (file)
@@ -91,7 +91,7 @@ FilmViewer::FilmViewer (wxWindow* p)
 #endif
 
        _panel->SetBackgroundStyle (wxBG_STYLE_PAINT);
 #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));
 
        _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.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);
        }
 
                dc.DrawRectangle (0, gap + _out_size.height, _panel_size.width, gap);
        }