From 009d01329a0d7a1b0469a8d051321c155eb58999 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Mon, 9 Jun 2008 04:11:11 +0200 Subject: [PATCH 1/1] Fix another bug relating to the "-1x-1" (ie. original size, but still with pr0n processing) size. --- perl/Sesse/pr0n/Common.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/perl/Sesse/pr0n/Common.pm b/perl/Sesse/pr0n/Common.pm index 4dca96a..6f45d55 100644 --- a/perl/Sesse/pr0n/Common.pm +++ b/perl/Sesse/pr0n/Common.pm @@ -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; } -- 2.39.2