Hi All,

I'm getting two errors after creating and focussing a window with DirectFB 
1.0.1. 
Here is a code snippet:

  IDirectFBDisplayLayer *layer;
  DFBWindowDescription winDesc;
  
  winDesc.flags = DWDESC_CAPS | DWDESC_WIDTH | DWDESC_HEIGHT | 
  DWDESC_PIXELFORMAT | DWDESC_POSX | DWDESC_POSY;
  winDesc.caps = DWCAPS_NONE;
  winDesc.width = width;
  winDesc.height = height;
  winDesc.pixelformat = DSPF_ARGB;
  winDesc.posx = 0;
  winDesc.posy = 0;
  winDesc.surface_caps = (DFBSurfaceCapabilities)(DSCAPS_SYSTEMONLY);
  
  DFBCHECK(dfb->GetDisplayLayer(dfb, 0, &layer));
  DFBCHECK(layer->SetCooperativeLevel(layer, DLSCL_ADMINISTRATIVE));

  DFBCHECK(layer->CreateWindow(layer, &winDesc, &window));
  DFBCHECK(window->SetStackingClass(window,DWSC_LOWER));
  DFBCHECK(window->RequestFocus(window));

After CreateWindow I'm getting this error:

  (!!!)  *** ONCE [unsupported source format] *** 
[../../../../src/gfx/generic/ge
  neric.c:8684 in gAcquire()]
  (!!!)  *** ONCE [unsupported destination format] *** 
[../../../../src/gfx/gener
  ic/generic.c:8610 in gAcquire()]

After RequestFocus this error occurs:

  DFBCHECK: 5(#) DirectFBError [window->RequestFocus(window)]: Not supported!

Do I have to initialize something else?

Thanks and Regards

Steffen
-- 
NEU: Mit GMX DSL über 1000,- ¿ sparen!
http://portal.gmx.net/de/go/dsl02
_______________________________________________
directfb-users mailing list
[email protected]
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users

Reply via email to