diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-02-13 23:05:20 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-02-13 23:05:20 +0000 |
| commit | 4b7ef6b5d477ef116b9c29877a0ca99e5625248c (patch) | |
| tree | f6eaefe3918a1aa965d2e47b153b73ccda42093b /src | |
| parent | 019e44f1a19e366b1771b3a0fb1dbec2d343597f (diff) | |
Fix erroneous padding of view using -in-flat formats (#52).
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 e685b7b35..e9992a11f 100644 --- a/src/wx/film_viewer.cc +++ b/src/wx/film_viewer.cc @@ -57,7 +57,7 @@ FilmViewer::FilmViewer (shared_ptr<Film> f, wxWindow* p) , _clear_required (false) { _panel->SetDoubleBuffered (true); -#if wxMAJOR_VERSION == 2 && wxMINOR_VERSION >= 9 +#if wxMAJOR_VERSION == 2 && wxMINOR_VERSION >= 9 _panel->SetBackgroundStyle (wxBG_STYLE_PAINT); #endif @@ -209,7 +209,7 @@ FilmViewer::paint_panel (wxPaintEvent &) dc.SetPen(*wxBLACK_PEN); dc.SetBrush(*wxBLACK_BRUSH); dc.DrawRectangle (0, 0, _display_frame_x, _film_size.height); - dc.DrawRectangle (_display_frame_x + _film_size.width, 0, _display_frame_x * 2 + _film_size.width, _film_size.height); + dc.DrawRectangle (_display_frame_x + _film_size.width, 0, _display_frame_x, _film_size.height); } wxImage frame (_film_size.width, _film_size.height, _display_frame->data()[0], true); |
