From 9e8a87b5c57f95a7a39c84e5c614dbc53a4410af Mon Sep 17 00:00:00 2001 From: Dobrica Pavlinusic Date: Fri, 6 Nov 2009 14:29:08 +0100 Subject: [PATCH] when resizing slides, use integer size --- bin/mplayer.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/mplayer.pl b/bin/mplayer.pl index b78c3c2..07a6c11 100755 --- a/bin/mplayer.pl +++ b/bin/mplayer.pl @@ -270,8 +270,8 @@ sub html5tv { $min_slide_height = $prop->{height} if $prop->{height} > $min_slide_height; - my $w = $min_slide_height / $factor * $slide_aspect; - my $h = $min_slide_height / $factor; + my $w = int( $min_slide_height / $factor * $slide_aspect ); + my $h = int( $min_slide_height / $factor ); warn "slide [$nr] $hires -> ${w}x${h} $file\n"; -- 2.20.1