summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2011-02-03 19:11:51 +0100
committerDaniel Friesel <derf@finalrewind.org>2011-02-03 19:11:51 +0100
commitb86df5489d338acc09a191ea8f98ae8165f7a3e3 (patch)
tree68af5fa0e6023344a42ef2d61bbb16fea6debcba /bin
parent1b23db3d002e2519140d59645b5388652fa204bb (diff)
vnet: Make text readable
Diffstat (limited to 'bin')
-rwxr-xr-xbin/vnet11
1 files changed, 9 insertions, 2 deletions
diff --git a/bin/vnet b/bin/vnet
index fd3b898..0eb15ee 100755
--- a/bin/vnet
+++ b/bin/vnet
@@ -55,12 +55,19 @@ sub show_net_png {
my $icon = GD::Image->newFromPng("${share}/network.png", 1);
my $black = $im->colorAllocateAlpha( 0, 0, 0, $alpha);
+ my $white = $im->colorAllocateAlpha(255, 255, 255, $alpha);
my $bg = $im->colorAllocateAlpha(255, 255, 255, 127);
+ my $ip_ext = get_ext_ip();
+ my $ip_int = get_int_ip();
+
$im->filledRectangle(0, 0, $w - 1, $h - 1, $bg);
- $im->string(gdMediumBoldFont, 36, 0, get_ext_ip(), $black);
- $im->string(gdMediumBoldFont, 36, 16, get_int_ip(), $black);
+ $im->string(gdMediumBoldFont, 37, 1, $ip_ext, $white);
+ $im->string(gdMediumBoldFont, 36, 0, $ip_ext, $black);
+
+ $im->string(gdMediumBoldFont, 37, 17, $ip_int, $white);
+ $im->string(gdMediumBoldFont, 36, 16, $ip_int, $black);
$im->copy($icon, 0, 0, 0, 0, 32, 32);