diff options
| author | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2003-12-27 21:14:49 +0000 |
|---|---|---|
| committer | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2003-12-27 21:14:49 +0000 |
| commit | 857405ea9754d9ed0e28c29cccbfe3463a1c1e38 (patch) | |
| tree | 10778fc48dcdf1344bb5df08893eed0e96b759fe /frontends/php/include/classes.inc.php | |
| parent | 6634c44551993bfc90eaa2d9646b4d861eb09518 (diff) | |
| download | zabbix-857405ea9754d9ed0e28c29cccbfe3463a1c1e38.tar.gz zabbix-857405ea9754d9ed0e28c29cccbfe3463a1c1e38.tar.xz zabbix-857405ea9754d9ed0e28c29cccbfe3463a1c1e38.zip | |
Cosmetic changes.
git-svn-id: svn://svn.zabbix.com/trunk@1113 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/include/classes.inc.php')
| -rw-r--r-- | frontends/php/include/classes.inc.php | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/frontends/php/include/classes.inc.php b/frontends/php/include/classes.inc.php index a3bb354d..97c3dfcc 100644 --- a/frontends/php/include/classes.inc.php +++ b/frontends/php/include/classes.inc.php @@ -233,8 +233,16 @@ $str=$str.$this->period2str($this->period); - $x=imagesx($this->im)/2-ImageFontWidth(4)*strlen($str)/2; - ImageString($this->im, 4,$x,1, $str , $this->colors["Dark Red No Alpha"]); + if($this->sizeX < 300) + { + $fontnum = 2; + } + else + { + $fontnum = 4; + } + $x=imagesx($this->im)/2-ImageFontWidth($fontnum)*strlen($str)/2; + ImageString($this->im, $fontnum,$x,1, $str , $this->colors["Dark Red No Alpha"]); } function setHeader($header) |
