Dark-Style fixes

git-svn-id: https://fhem.svn.sourceforge.net/svnroot/fhem/trunk/fhem@1200 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig
2012-01-21 12:29:14 +00:00
parent dd7b32827a
commit 3e948fdaae
4 changed files with 58 additions and 23 deletions

View File

@@ -40,15 +40,16 @@ SVG_render($$$$$$$)
return "" if(!defined($dp));
my $th = 16; # "Font" height
my ($x, $y) = (($SVG_ss ? 2 : 3)*$th, 1.2*$th); # Rect offset
my %conf; # gnuplot file settings
######################
# Convert the configuration to a "readable" form -> array to hash
my %conf; # gnuplot file settings
map { chomp; my @a=split(" ",$_, 3);
if($a[0] && $a[0] eq "set") { $conf{$a[1]} = $a[2]; } } @{$confp};
if($a[0] && $a[0] eq "set") { $conf{lc($a[1])} = $a[2]; } } @{$confp};
my $ps = "800,400";
$ps = $1 if($conf{terminal} =~ m/.*size[ ]*([^ ]*)/);
$conf{title} = "" if(!defined($conf{title}));
$conf{title} =~ s/'//g;
my ($ow,$oh) = split(",", $ps); # Original width