cvs: pear /Image_3D/Image/3D/Driver GD.php

From: Date: Sun, 06 Nov 2005 20:49:28 +0000
Subject: cvs: pear /Image_3D/Image/3D/Driver GD.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-36116@lists.php.net to get a copy of this message
kore Sun Nov 6 15:49:28 2005 EDT Modified files: /pear/Image_3D/Image/3D/Driver GD.php Log: - Fixed used variable to get transparancy working again with GD-driver http://cvs.php.net/diff.php/pear/Image_3D/Image/3D/Driver/GD.php?r1=1.1&r2=1.2&ty=u Index: pear/Image_3D/Image/3D/Driver/GD.php diff -u pear/Image_3D/Image/3D/Driver/GD.php:1.1 pear/Image_3D/Image/3D/Driver/GD.php:1.2 --- pear/Image_3D/Image/3D/Driver/GD.php:1.1 Mon Jul 18 11:35:30 2005 +++ pear/Image_3D/Image/3D/Driver/GD.php Sun Nov 6 15:49:27 2005 @@ -16,13 +16,13 @@ protected function _getColor(Image_3D_Color $color) { $values = $color->getValues(); - + $values[0] = (int) round($values[0] * 255); $values[1] = (int) round($values[1] * 255); $values[2] = (int) round($values[2] * 255); $values[3] = (int) round($values[3] * 127); - if ($this->_rgbaValue[3] > 0) { + if ($values[3] > 0) { // Tranzparente Farbe allokieren $color = imageColorExactAlpha($this->_image, $values[0], $values[1], $values[2], $values[3]); if ($color === -1) {

« previous php.pear.cvs (#36116) next »