summaryrefslogtreecommitdiffstats
path: root/frontends/php/include/classes.inc.php
diff options
context:
space:
mode:
Diffstat (limited to 'frontends/php/include/classes.inc.php')
-rw-r--r--frontends/php/include/classes.inc.php12
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)