--- deliantra/Deliantra-Client/DC.pm 2006/04/15 00:04:58 1.32 +++ deliantra/Deliantra-Client/DC.pm 2006/04/15 01:13:45 1.33 @@ -117,9 +117,9 @@ } sub new_from_image { - my ($class, $image) = @_; + my ($class, $image, %arg) = @_; - $class->new (image => $image) + $class->new (image => $image, %arg) } sub new_from_file { @@ -201,7 +201,7 @@ } $self->{minified} = [CFClient::average $tw, $th, $data] - if defined $data; + if $self->{minify}; unless ($GL_NPOT) { # TODO: does not work for zero-sized textures