diff options
| author | pbuetow (lap824) <puppet@mx.buetow.org> | 2012-01-28 19:24:10 +0100 |
|---|---|---|
| committer | pbuetow (lap824) <puppet@mx.buetow.org> | 2012-01-28 19:24:10 +0100 |
| commit | 6ca72bc6710320669e467d07c18c04d4bfd5508f (patch) | |
| tree | 2c1883700342f96124ae76507f514f79f518290c | |
| parent | ce4acdea0bc665f45a00bb33b5d7f6d23544a41c (diff) | |
Remove anoying resize info messages
| -rwxr-xr-x | loadbars | 26 |
1 files changed, 5 insertions, 21 deletions
@@ -276,37 +276,21 @@ sub set_dimensions ($$) { my $display_info = 0; if ($width < 1) { - if ($C{width} != 1) { - $C{width} = 1; - $display_info = 1; - } + $C{width} = 1 if $C{width} != 1; } elsif ($width > $C{maxwidth}) { - if ($C{width} != $C{maxwidth}) { - $C{width} = $C{maxwidth}; - $display_info = 1; - } + $C{width} = $C{maxwidth} if $C{width} != $C{maxwidth}; } elsif ($C{width} != $width) { $C{width} = $width; - $display_info = 1; } if ($height < 1) { - if ($C{height} != 1) { - $C{height} = 1; - $display_info = 1; - } + $C{height} = 1 if $C{height} != 1; - } else { - if ($C{height} != $height) { - $C{height} = $height; - $display_info = 1; - } + } elsif ($C{height} != $height) { + $C{height} = $height; } - - display_info "Resizing window to $C{width}x$C{height}" - if $display_info; } sub main_loop ($@) { |
