summaryrefslogtreecommitdiffstats
path: root/frontends/php/map.php
diff options
context:
space:
mode:
authorhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2004-01-04 13:27:26 +0000
committerhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2004-01-04 13:27:26 +0000
commit952d3ce3da60ad053157a4d060befaafed0d8dad (patch)
treebfd484fc8b964a25ea84b2570e79059e3d238f27 /frontends/php/map.php
parent4e38aa26bd24410f5dcf0e9ac5482c5d3a0c488e (diff)
downloadzabbix-952d3ce3da60ad053157a4d060befaafed0d8dad.tar.gz
zabbix-952d3ce3da60ad053157a4d060befaafed0d8dad.tar.xz
zabbix-952d3ce3da60ad053157a4d060befaafed0d8dad.zip
- new icons and icon types for sysmaps (Alexei)
git-svn-id: svn://svn.zabbix.com/trunk@1135 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/map.php')
-rw-r--r--frontends/php/map.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/frontends/php/map.php b/frontends/php/map.php
index 698f5f89..e1b8c507 100644
--- a/frontends/php/map.php
+++ b/frontends/php/map.php
@@ -40,7 +40,7 @@
check_authorisation();
- $im = imagecreate($width,$height);
+ $im = imagecreatetruecolor($width,$height);
$red=ImageColorAllocate($im,255,0,0);
$darkred=ImageColorAllocate($im,150,0,0);
@@ -184,6 +184,8 @@
$img=$icons[$icon];
+// imagecolortransparent ($img, imagecolorat ($img, 0, 0));
+// imagecolortransparent ($img, 0, 0, 0);
ImageCopy($im,$img,$x,$y,0,0,ImageSX($img),ImageSY($img));
$x1=$x+ImageSX($img)/2-ImageFontWidth(2)*strlen($label)/2;