]> mj.ucw.cz Git - gallery.git/commitdiff
Gallery2: Correct rounding in gal-gen
authorMartin Mares <mj@ucw.cz>
Sat, 29 Dec 2012 16:22:11 +0000 (17:22 +0100)
committerMartin Mares <mj@ucw.cz>
Sun, 8 Feb 2015 20:14:16 +0000 (21:14 +0100)
gal2/bin/gal-gen

index 94c291b5da8a198ef5106f067bdfaca413d445d6..14a40d0888a1a748363d0998c9fb8e2a5ab61128 100755 (executable)
@@ -57,8 +57,8 @@ for my $f (@$orig_list) {
                $w = $w * $s;
                $h = $h * $s;
        }
-       $w = int($w);
-       $h = int($h);
+       $w = int($w + .5);
+       $h = int($h + .5);
        
        my $m = {
                'o' => $rotate,