Oh dear. Yes, you're right. I've fixed this in the darcs version.
thanks for the report,
Axel.
On Nov 15, 2009, at 3:19, Petr Machata wrote:
> Reproduce like this:
>
> $ ghci
> <snip>
> Prelude> import Graphics.UI.Gtk
> Prelude Graphics.UI.Gtk> initGUI
> <snip>
> []
> Prelude Graphics.UI.Gtk> let (w, h) = (20::Int, 10::Int)
> Prelude Graphics.UI.Gtk> tmp <- pixbufNew (ColorspaceRgb) True 8 w h
> Prelude Graphics.UI.Gtk> tmp2 <- pixbufNew (ColorspaceRgb) True 8 w h
> Prelude Graphics.UI.Gtk> pixbufComposite tmp tmp2 0 0 w h 0 0 1 1
> (InterpNearest) 255
>
> (<interactive>:25146): GdkPixbuf-CRITICAL **: gdk_pixbuf_composite:
> assertion `dest_y >= 0 && dest_y + dest_height <= dest->height' failed
> Prelude Graphics.UI.Gtk> pixbufComposite tmp tmp2 0 0 h w 0 0 1 1
> (InterpNearest) 255
>
> Note that the only change in the last command is that I've swapped w
> and h arguments to pixbufComposite, and the error message disappeared.
> I therefore suspect that these arguments are in fact reversed in the
> haskell wrapper.
>
> Thanks,
> Petr Machata
>
> ----------------------------------------------------------------------
> --------
> Let Crystal Reports handle the reporting - Free Crystal Reports
> 2008 30-Day
> trial. Simplify your report design, integration and deployment -
> and focus on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now. http://p.sf.net/sfu/bobj-july
> _______________________________________________
> Gtk2hs-users mailing list
> Gtk2hs-users@...
> https://lists.sourceforge.net/lists/listinfo/gtk2hs-users
|