Hi,

Denis Oliver Kropp wrote:
> michael wrote:
>> First I would like to do outside the gdk-directfb implementation. If a take
>> the directfb Window surface using the GDK_WINDOW_IMPL_DIRECTFB, than I 
>> can change
>> the COLORKEING for that surface, so the directfb subsystem when compose 
>> the window to
>> send to the screen remove the key color from the GdkWindow. It is correct?
>
> Yes.
>
 I try to set the ColorKey at the top window.

  GdkWindowObject *private;
  GdkWindowImplDirectFB *impl;
  IDirectFBWindow *ll_window;

  private = GDK_WINDOW_OBJECT (widget->window);
  impl = GDK_WINDOW_IMPL_DIRECTFB(private->impl);
  ll_window = impl->window;
  ll_window->SetColorKey(ll_window,0,255,0);

I notice that the CHILD window does't have a impl->window, so I suppose 
that the
setting at the first one is ok for all the windows stack. I change the 
colour of the drawarea
that is a child of the main window like this.

 color.red = 0;
 color.green = 65535;
 color.blue = 0;
 gtk_widget_modify_bg(darea, GTK_STATE_NORMAL, &color);

So I expected that all the green bit are trasparent and I must see the 
background of the
main window, but I see the gree color of the draw area. What is wrong?

Regards Michael

_______________________________________________
directfb-dev mailing list
directfb-dev@directfb.org
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev

Reply via email to