summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorGábor Hojtsy <gabor@hojtsy.hu>2007-11-12 16:06:25 +0000
committerGábor Hojtsy <gabor@hojtsy.hu>2007-11-12 16:06:25 +0000
commitb6f36a1cf917d0ab65e29637e4870662875e5a24 (patch)
treec50d6111e65489c62accdc8fd601577ce2b06a78 /modules
parent7c70d1b2a591c059a20b8008295a739b2f15af8f (diff)
downloadbrdo-b6f36a1cf917d0ab65e29637e4870662875e5a24.tar.gz
brdo-b6f36a1cf917d0ab65e29637e4870662875e5a24.tar.bz2
#134984 by mikesmullin: fix gradient coordinate counting in color module
Diffstat (limited to 'modules')
-rw-r--r--modules/color/color.module2
1 files changed, 1 insertions, 1 deletions
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.