Project

General

Profile

Bug #22797 » 14602.patch

Administrator Admin, 2010-07-25 23:27

View differences:

typo3/sysext/cms/tslib/class.tslib_gifbuilder.php (working copy)
$this->w = $XY[0];
$this->h = $XY[1];
// backColor is set
$BGcols = $this->convertColor($this->setup['backColor']);
$Bcolor = ImageColorAllocate($this->im, $BGcols[0],$BGcols[1],$BGcols[2]);
ImageFilledRectangle($this->im, 0, 0, $XY[0], $XY[1], $Bcolor);
if ($this->truecolor && $this->setup['alphaChannel']) {
// support alpha channel transparency
imagealphablending($this->im, FALSE);
imagesavealpha($this->im, TRUE);
// backColor is set to transparent
$BGcols = $this->convertColor($this->setup['backColor']);
$Bcolor = ImageColorAllocateAlpha($this->im, $BGcols[0], $BGcols[1], $BGcols[2], 127);
imagefill($this->im, 0, 0, $Bcolor);
} else {
// backColor is set
$BGcols = $this->convertColor($this->setup['backColor']);
$Bcolor = ImageColorAllocate($this->im, $BGcols[0], $BGcols[1], $BGcols[2]);
ImageFilledRectangle($this->im, 0, 0, $XY[0], $XY[1], $Bcolor);
}
// Traverse the GIFBUILDER objects an render each one:
if (is_array($this->setup)) {
(2-2/2)