Added a higher preference for horizontal unit names

git-svn-id: file:///svn-source/pmgr/branches/initial_20090526/site@37 97e9348a-65ac-dc4b-aefc-98561f571b83
This commit is contained in:
abijah
2009-05-29 06:57:22 +00:00
parent 50449205b4
commit 8dae1ccf84

View File

@@ -68,7 +68,7 @@ foreach ($info['units'] AS $unit) {
// If the unit is wide enough, run the text horizontal,
// otherwise, we'll have to run it vertical.
if ($unit['width'] > 40 || ($unit['width'] >= $unit['depth'])) {
if ($unit['width'] > 20 || ($unit['width'] >= $unit['depth'])) {
imagestring($image, $unit['width']/25,
$unit['left']+3, $unit['top']+3,
$unit['name'],