Hopefully fix black borders round the preview in some cases.
authorCarl Hetherington <cth@carlh.net>
Fri, 30 Jan 2015 20:21:31 +0000 (20:21 +0000)
committerCarl Hetherington <cth@carlh.net>
Fri, 30 Jan 2015 20:21:31 +0000 (20:21 +0000)
ChangeLog
src/wx/film_viewer.cc

index 6b617c06e65b478b090e310f4e590875c7245817..bcf3ea2d8d587f5abc2490f8ea5dc99264e42b62 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2015-01-30  Carl Hetherington  <cth@carlh.net>
+
+       * Hopefully fix black borders round the preview in
+       some cases.
+
 2015-01-24  Carl Hetherington  <cth@carlh.net>
 
        * Version 2.0.38 released.
index 21d4ae1fe1938e1da5d45de9e4b3e9a8bb0d07a7..15f22472119470a16fcbd68b8cd3724f2148e288 100644 (file)
@@ -315,14 +315,14 @@ FilmViewer::calculate_sizes ()
        _out_size.width = max (64, _out_size.width);
        _out_size.height = max (64, _out_size.height);
 
+       _player->set_video_container_size (_out_size);
+
        /* The player will round its image size down to the next lowest 4 pixels
           to speed up its scale, so do similar here to avoid black borders
           around things.  This is a bit of a hack.
        */
        _out_size.width &= ~3;
        _out_size.height &= ~3;
-
-       _player->set_video_container_size (_out_size);
 }
 
 void