From b6f36a1cf917d0ab65e29637e4870662875e5a24 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A1bor=20Hojtsy?= Date: Mon, 12 Nov 2007 16:06:25 +0000 Subject: #134984 by mikesmullin: fix gradient coordinate counting in color module --- modules/color/color.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules') diff --git a/modules/color/color.module b/modules/color/color.module index 78e38906d..516e98c69 100644 --- a/modules/color/color.module +++ b/modules/color/color.module @@ -396,7 +396,7 @@ function _color_render_images($theme, &$info, &$paths, $palette) { // Render gradient. for ($y = 0; $y < $info['gradient'][3]; ++$y) { $color = _color_blend($target, $palette['top'], $palette['bottom'], $y / ($info['gradient'][3] - 1)); - imagefilledrectangle($target, $info['gradient'][0], $info['gradient'][1] + $y, $info['gradient'][2], $info['gradient'][1] + $y + 1, $color); + imagefilledrectangle($target, $info['gradient'][0], $info['gradient'][1] + $y, $info['gradient'][0] + $info['gradient'][2], $info['gradient'][1] + $y + 1, $color); } // Blend over template. -- cgit v1.2.3