ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/Deliantra-Client/DC.pm
(Generate patch)

Comparing deliantra/Deliantra-Client/DC.pm (file contents):
Revision 1.46 by root, Mon Apr 24 10:19:39 2006 UTC vs.
Revision 1.47 by root, Mon Apr 24 13:01:13 2006 UTC

243 = CFClient::load_image_inline $self->{image}; 243 = CFClient::load_image_inline $self->{image};
244 } 244 }
245 245
246 my ($tw, $th) = @$self{qw(w h)}; 246 my ($tw, $th) = @$self{qw(w h)};
247 247
248 unless ($tw && $th) { 248 unless ($tw > 0 && $th > 0) {
249 $tw = $th = 1; 249 $tw = $th = 1;
250 $data = "\x00" x 64; 250 $data = "\x00" x 64;
251 } 251 }
252 252
253 $self->{minified} = [CFClient::average $tw, $th, $data] 253 $self->{minified} = [CFClient::average $tw, $th, $data]

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines