summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Buetow (mars.fritz.box) <paul@buetow.org>2011-11-17 22:52:37 +0100
committerPaul Buetow (mars.fritz.box) <paul@buetow.org>2011-11-17 22:52:37 +0100
commite9cd93d2728be6380858e4d939fd9a68c2880e14 (patch)
tree82c2bbc236a8837b8b953e5b12316f272ec96ed2
parent4fc9f403e29151c326200bf196801e6ff9e07458 (diff)
Some cleanup
-rwxr-xr-xloadbars.pl27
1 files changed, 1 insertions, 26 deletions
diff --git a/loadbars.pl b/loadbars.pl
index 186b20a..d8da582 100755
--- a/loadbars.pl
+++ b/loadbars.pl
@@ -26,7 +26,7 @@ use threads::shared;
use constant {
DEPTH => 8,
- VERSION => 'loadbars v0.2.1.1-devel',
+ VERSION => 'loadbars v0.2.2-devel',
Copyright => '2010-2011 (c) Paul Buetow <loadbars@mx.buetow.org>',
BLACK => SDL::Color->new(-r => 0x00, -g => 0x00, -b => 0x00),
BLUE => SDL::Color->new(-r => 0x00, -g => 0x00, -b => 0xff),
@@ -294,31 +294,6 @@ sub main_loop ($@) {
$int -= 0.1;
$C{inter} = $int > 0 ? $int : 0.1;
$displayinfo = "Set graph update interval to $C{inter}";
-
-=cut
- } elsif ($key_name eq 'down') {
- my $height = $C{height} + 10;
- $app->resize($C{width},$height);
- $C{height} = $height;
- $displayinfo = "Set graph height to $C{height}";
- } elsif ($key_name eq 'up') {
- my $height = $C{height};
- $height -= 10;
- $C{height} = $height > 1 ? $height : 1;
- $app->resize($C{width},$C{height});
- $displayinfo = "Set graph height to $C{height}";
-
- } elsif ($key_name eq 'right') {
- $C{width} += 10;
- $app->resize($C{width},$C{height});
- $displayinfo = "Set graph width to $C{width}";
- } elsif ($key_name eq 'left') {
- my $width = $C{width};
- $width -= 10;
- $C{width} = $width > 1 ? $width : 1;
- $app->resize($C{width},$C{height});
- $displayinfo = "Set graph width to $C{width}";
-=cut
}
}
};