summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2013-07-09 23:11:01 +0100
committerCarl Hetherington <cth@carlh.net>2013-07-09 23:11:01 +0100
commit239d317bbd762f3f3b3fbed1d1b1bd03b49aad06 (patch)
tree751c50ee3f07009fce17c7f813c5ae1940613dff /src
parentc37d4e41da190144806463387fdbe64e65196730 (diff)
Fix initial display of frame.
Diffstat (limited to 'src')
-rw-r--r--src/wx/film_viewer.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/wx/film_viewer.cc b/src/wx/film_viewer.cc
index 6d7181b5f..e5d07a118 100644
--- a/src/wx/film_viewer.cc
+++ b/src/wx/film_viewer.cc
@@ -131,6 +131,7 @@ FilmViewer::set_film (shared_ptr<Film> f)
_player->Video.connect (boost::bind (&FilmViewer::process_video, this, _1, _2, _3));
_player->Changed.connect (boost::bind (&FilmViewer::player_changed, this));
+ calculate_sizes ();
fetch_current_frame_again ();
}
@@ -211,6 +212,7 @@ FilmViewer::panel_sized (wxSizeEvent& ev)
{
_panel_size.width = ev.GetSize().GetWidth();
_panel_size.height = ev.GetSize().GetHeight();
+ calculate_sizes ();
fetch_current_frame_again ();
}