diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-06-16 15:24:45 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-06-16 15:24:45 +0100 |
| commit | 739a52b20895622a1caf48d3597ae49e6ec0aeeb (patch) | |
| tree | aa857d5d8b9c48431a2d05c3692698e0ad485f25 /src | |
| parent | b8540eaf3e2bb7d611117bb26185b7d6fc5743aa (diff) | |
Fix mangled initial viewer frame.
Diffstat (limited to 'src')
| -rw-r--r-- | src/wx/film_viewer.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/wx/film_viewer.cc b/src/wx/film_viewer.cc index 3385aa2b3..d2ec01de7 100644 --- a/src/wx/film_viewer.cc +++ b/src/wx/film_viewer.cc @@ -43,6 +43,7 @@ using std::string; using std::pair; +using std::min; using std::max; using std::cout; using std::list; @@ -312,11 +313,11 @@ FilmViewer::calculate_sizes () } /* Catch silly values */ - if (_out_size.width < 64) { - _out_size.width = 64; - } + _out_size.width = max (64, _out_size.width); + _out_size.height = max (64, _out_size.height); _player->set_video_container_size (_out_size); + update_from_decoder (); } void |
