summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2011-02-13 10:13:12 +0100
committerDaniel Friesel <derf@finalrewind.org>2011-02-13 10:13:12 +0100
commitdb058204e82bfa8504e322fb106ac83f172ba39e (patch)
tree6e4855be604b484339255ff46889735c7f20bdf5
parent8c19626827bf5aa02b52f7b716ee62c7a712b1de (diff)
vweather: Adjust offsets
-rwxr-xr-xbin/vweather10
1 files changed, 5 insertions, 5 deletions
diff --git a/bin/vweather b/bin/vweather
index 06f6461..b461f76 100755
--- a/bin/vweather
+++ b/bin/vweather
@@ -48,7 +48,7 @@ sub show_weather_console {
}
sub show_weather_png {
- my ($w, $h) = (140, 64);
+ my ($w, $h) = (110, 64);
my $im = GD::Image->new($w, $h);
my $white = $im->colorAllocateAlpha(255, 255, 255, $alpha);
@@ -72,9 +72,9 @@ sub show_weather_png {
last;
}
- $im->string(gdMediumBoldFont, 10, $offset, $wday , $black);
- $im->string(gdMediumBoldFont, 60, $offset, $low , $blue);
- $im->string(gdMediumBoldFont, 95, $offset, $high , $red);
+ $im->string(gdMediumBoldFont, 5, $offset, $wday , $black);
+ $im->string(gdMediumBoldFont, 42, $offset, $low , $blue);
+ $im->string(gdMediumBoldFont, 77, $offset, $high , $red);
if ($dump) {
say "${share}/weather/${icon}";
@@ -82,7 +82,7 @@ sub show_weather_png {
if (-e "${share}/weather/${icon}") {
my $tmp = GD::Image->newFromPng("${share}/weather/${icon}", 1);
- $im->copy($tmp, 40, $offset, 0, 0, 16, 16);
+ $im->copy($tmp, 22, $offset, 0, 0, 16, 16);
}
}