diff options
author | Gábor Hojtsy <gabor@hojtsy.hu> | 2007-11-12 16:06:25 +0000 |
---|---|---|
committer | Gábor Hojtsy <gabor@hojtsy.hu> | 2007-11-12 16:06:25 +0000 |
commit | b6f36a1cf917d0ab65e29637e4870662875e5a24 (patch) | |
tree | c50d6111e65489c62accdc8fd601577ce2b06a78 /modules/color | |
parent | 7c70d1b2a591c059a20b8008295a739b2f15af8f (diff) | |
download | brdo-b6f36a1cf917d0ab65e29637e4870662875e5a24.tar.gz brdo-b6f36a1cf917d0ab65e29637e4870662875e5a24.tar.bz2 |
#134984 by mikesmullin: fix gradient coordinate counting in color module
Diffstat (limited to 'modules/color')
-rw-r--r-- | modules/color/color.module | 2 |
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. |