diff options
| author | Carl Hetherington <cth@carlh.net> | 2019-01-20 00:55:10 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2019-05-06 21:31:09 +0100 |
| commit | f01dbe03f472188a002d611ee873f7de121d25b6 (patch) | |
| tree | 091289f8dfcc3934d9dc5ad867987b43be5e187d | |
| parent | bb6879ecc8727db3d7ce391b4166805f77db4d11 (diff) | |
Fix rendering with odd output sizes.
| -rw-r--r-- | src/wx/film_viewer.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/wx/film_viewer.cc b/src/wx/film_viewer.cc index acbbcdd25..173c286cc 100644 --- a/src/wx/film_viewer.cc +++ b/src/wx/film_viewer.cc @@ -469,6 +469,10 @@ FilmViewer::calculate_sizes () _out_size.width = max (64, _out_size.width); _out_size.height = max (64, _out_size.height); + /* OpenGL can't cope with odd sizes */ + _out_size.width &= ~1; + _out_size.height &= ~1; + _player->set_video_container_size (_out_size); } |
