Re: I shouldn't code when I'm tired either...
| From: | Christian Weiske | Date: | Wed, 21 Jun 2006 18:09:22 +0000 |
| Subject: | Re: I shouldn't code when I'm tired either... | ||
| References: | 1 | Groups: | php.gtk.dev |
| Request: | Send a blank email to php-gtk-dev+get-3135@lists.php.net to get a copy of this message | ||
Steph,
> +override gdk_pixbuf_add_alpha
> + if (ZEND_NUM_ARGS() > 0) {
> + if (!php_gtk_parse_args(ZEND_NUM_ARGS(), "iii", &red, &green,
> &blue)) {
> + return;
> + } else {
> + } else {
> + if (!php_gtk_parse_args(ZEND_NUM_ARGS(), ""))
> + return;
> + }
> + pixbuf = gdk_pixbuf_add_alpha(GDK_PIXBUF(PHPG_GOBJECT(this_ptr)),
> 1, r, g, b);
That's wrong. There is no way *not* to set a transparent color here as
it is with the original method. If no params are given, the second
parameter passed to gdk_pixbuf_add_alpha should be 0, not 1.
--
Regards/MfG,
Christian Weiske
Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc
Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc