X-Git-Url: https://git.sesse.net/?p=pr0n;a=blobdiff_plain;f=perl%2FSesse%2Fpr0n%2FCommon.pm;h=6f45d55d903186aa6dc489f208519fd98574887f;hp=cc2b660fd3d857370b720d4884c3fba0f8b6c998;hb=009d01329a0d7a1b0469a8d051321c155eb58999;hpb=a48970df0c4bf4d7d106bfa77149c5774e696ff4 diff --git a/perl/Sesse/pr0n/Common.pm b/perl/Sesse/pr0n/Common.pm index cc2b660..6f45d55 100644 --- a/perl/Sesse/pr0n/Common.pm +++ b/perl/Sesse/pr0n/Common.pm @@ -35,7 +35,7 @@ BEGIN { require Sesse::pr0n::Config_local; }; - $VERSION = "v2.60"; + $VERSION = "v2.65"; @ISA = qw(Exporter); @EXPORT = qw(&error &dberror); %EXPORT_TAGS = qw(); @@ -408,7 +408,7 @@ sub make_mipmap { my $large_enough = 1; for my $i (0..($#res/2)) { my ($xres, $yres) = ($res[$i*2], $res[$i*2+1]); - if ($xres > $new_mmwidth || $yres > $new_mmheight) { + if ($xres == -1 || $xres > $new_mmwidth || $yres > $new_mmheight) { $large_enough = 0; last; }