From 857405ea9754d9ed0e28c29cccbfe3463a1c1e38 Mon Sep 17 00:00:00 2001 From: hugetoad Date: Sat, 27 Dec 2003 21:14:49 +0000 Subject: Cosmetic changes. git-svn-id: svn://svn.zabbix.com/trunk@1113 97f52cf1-0a1b-0410-bd0e-c28be96e8082 --- frontends/php/include/classes.inc.php | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'frontends/php/include/classes.inc.php') 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) -- cgit