Re: GdkPixbuf example
| From: | Markus Fischer | Date: | Wed, 05 Dec 2001 07:08:03 +0000 |
| Subject: | Re: GdkPixbuf example | ||
| References: | 1 2 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-812@lists.php.net to get a copy of this message | ||
On Wed, Dec 05, 2001 at 03:02:28PM +0800, Alan Knowles wrote :
> + zval *pixbuf, *pixmap_return, *mask_return;
> + long alpha_threshold;
^^^^
> + GdkPixmap *pixmap = NULL;
> + GdkBitmap *mask;
> +
> + NOT_STATIC_METHOD();
> +
> + if (!php_gtk_parse_args(ZEND_NUM_ARGS(), "i", &alpha_threshold))
> + return;
> +
> + gdk_pixbuf_render_pixmap_and_mask(PHP_GDK_PIXBUF_GET(this_ptr),
> + &pixmap, &mask, (int)alpha_threshold);
^^^^^
parse_args already casts to 'int', you don't need
long anywhere.
- Markus
--
Please always Cc to me when replying to me on the lists.