Re: GdkPixbuf Trouble

From: Date: Thu, 23 Mar 2006 23:53:54 +0000
Subject: Re: GdkPixbuf Trouble
References: 1 2  Groups: php.gtk.dev 
Request: Send a blank email to php-gtk-dev+get-2679@lists.php.net to get a copy of this message
Hi all (esp Andrei), > You're missing that I already did that. It's in cvs, > test/bug_pixbuf-demo.php > Andrei told me today that he'll look into the segfault The script gives a segmentation fault, but when I replace line: //expose_cb() $pixels = $frame->get_pixels() + $rowstride * $event->area->y + $event->area->x * 3; with just: // This is how it is in the pygtk-demo! $pixels = $frame->get_pixels(); you no longer get a segmentation fault but a warning message: Warning: GdkDrawable::draw_rgb_image_dithalign() expects argument 7 to be string without null bytes, string given in /home/anant/php-gtk/test/bug_pixbuf-demo.php on line 78 IMO Definitely something to do what get_pixels() returns. Regards, -- Anant Find Freedom, Go Open Source! http://www.kix.in/

« previous php.gtk.dev (#2679) next »