Quoting Rene Engbers:
>    (gdb) frame 0
>    #0  0x2b9b7b48 in gdk_pixmap_new (window=0x10164450, width=10, height=10,
>    depth=-1) at gdkpixmap-directfb.c:150
>    150           draw_impl->surface->GetPixelFormat (draw_impl->surface,
>    &format);
>    (gdb) print draw_impl
>    $1 = (GdkDrawableImplDirectFB *) 0x10164450
>    (gdb) print draw_impl->surface
>    $2 = (IDirectFBSurface *) 0x0
> 
>    The surface attribute is null and results in a crash. Iám unsure if this
>    is a Direct FB problem or a GTK (GDK) problem.

Looks like a GDK-DirectFB problem. I guess that the window is not realized when
the image is created. Try adding "gdk_window_realize(window)" at the beginning
of gdk_image_new().

-- 
Best regards,
  Denis Oliver Kropp
 
.------------------------------------------.
| DirectFB - Hardware accelerated graphics |
| http://www.directfb.org/                 |
"------------------------------------------"

_______________________________________________
directfb-users mailing list
[email protected]
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users

Reply via email to