Skip to content

Commit

Permalink
minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
dk committed Nov 3, 2023
1 parent ffbb8db commit 0d29310
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Prima/Image/Animate.pm
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,10 @@ sub new
current => -1,
}, $class;

$self->{loadAll} = 0 if $self->{images};
$self->{loadAll} = 1 if $self->{images};
$self->{images} //= [] if $self->{loadAll};

$self-> reset;

return $self;
}

Expand Down Expand Up @@ -486,6 +485,7 @@ sub load_next_image
{
my $i = shift->SUPER::load_next_image;
$i->maskType(im::bpp8) if $i && $i->isa('Prima::Icon');
return $i;
}

sub get_extras
Expand All @@ -501,7 +501,7 @@ sub get_extras
sub next
{
my $self = shift;
my $info = $self->{info};
my $info = $self->{info} or return;
my %ret;

if ( $info-> {disposalMethod} eq 'restore') {
Expand Down

0 comments on commit 0d29310

Please sign in to comment.