--- deliantra/server/utils/cfutil.in 2007/04/02 18:04:47 1.20 +++ deliantra/server/utils/cfutil.in 2007/04/10 09:35:24 1.23 @@ -149,7 +149,6 @@ my $other = "$stem.64x64.png~"; if (0 > aio_lstat $other or (-M _) > (-M $path)) { - warn "rescale $other\n";#d# my $wrap = 0; # for the time being fork_sub { system "convert png:\Q$path\E -depth 8 rgba:-" @@ -178,14 +177,14 @@ }; } - warn "scaled down $path to $other\n";#d# - + #warn "scaled down $path to $other\n";#d# push @png, [$other, !$CACHE]; } } (my $face = $stem) =~ s/^.*\///; + # split all bigfaces, but avoid smoothfaces (*_S) if (($w > $T || $h > $T) && $face !~ /_S\./) { # split my @tile; @@ -310,11 +309,11 @@ } if (my $smooth = delete $o->{smoothface}) { - my ($face, $smooth) = split /\s+/, $smooth; - # skip empty_S.x11, it seems to server no purpose whatsoever - # but increases bandwidth demands and worse. - unless ($smooth eq "empty_S.x11") { - $FACEINFO{$face}{smooth} = $smooth; + my %kv =split /\s+/, $smooth; + my $level = $o->{smoothlevel}; #TODO: delete from $o if !gcfclient-support + while (my ($face, $smooth) = each %kv) { + $FACEINFO{$face}{smooth} = $smooth; + $FACEINFO{$face}{smoothlevel} = $level; } } }